From f6de96597f09cb8d8cd16292fedba1f7e3f6e57a Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Mon, 19 Nov 2018 14:05:47 -0800 Subject: [PATCH] Revert "mirror-workspace-git: use port when pushing git repo through ssh" This reverts commit 34cfe44ca5c63c354339aa502052d9054a36bf60. The :port suffix doesn't work if the hostname is an ipv6 ip address as the hostname needs to be wrapped in []s in that case. Revert this so that we can fix this in a followup. Change-Id: I2dfee56d40a4cdd096946a2f67c37117fff74cce --- roles/mirror-workspace-git-repos/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/mirror-workspace-git-repos/tasks/main.yaml b/roles/mirror-workspace-git-repos/tasks/main.yaml index 1916124f1..2c9f19184 100644 --- a/roles/mirror-workspace-git-repos/tasks/main.yaml +++ b/roles/mirror-workspace-git-repos/tasks/main.yaml @@ -7,7 +7,7 @@ with_dict: "{{ zuul.projects }}" - name: Synchronize src repos to workspace directory - command: "git push --mirror git+ssh://{{ ansible_user }}@{{ ansible_host }}:{{ ansible_port }}/{{ ansible_user_dir }}/{{ item.value.src_dir}}" + command: "git push --mirror git+ssh://{{ ansible_user }}@{{ ansible_host }}/{{ ansible_user_dir }}/{{ item.value.src_dir}}" args: chdir: "{{ zuul.executor.work_root }}/{{ item.value.src_dir }}" with_dict: "{{ zuul.projects }}"