Skip to content

Commit 049def3

Browse files
authored
fix: [AAP-46553] modify the project clone playbook for ansible-core 2.19 (#1321)
`omit` should always be the end state, and not used in the middle. https://issues.redhat.com/browse/AAP-46553 e.g ``` version: "{{ scm_branch | default(omit) | quote }}" ``` gets interpreted as ``` "cmd": "/usr/bin/git checkout --force '<<Omit>>'", ```
1 parent ad521a4 commit 049def3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aap_eda/data/playbooks/project_clone.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
tasks:
1717
- name: Clone or pull a project using git
1818
block:
19-
- name: Clone or pull a project using gitt
19+
- name: Clone or pull a project using git
2020
ansible.builtin.git:
2121
dest: "{{ project_path | quote }}"
2222
repo: "{{ scm_url }}"
23-
version: "{{ scm_branch | default(omit) | quote }}"
23+
version: "{{ omit if scm_branch is undefined else scm_branch|quote }}"
2424
refspec: "{{ scm_refspec | default(omit) }}"
2525
key_file: "{{ key_file | default(omit) }}"
2626
accept_hostkey: true

0 commit comments

Comments
 (0)