mirror of
https://github.com/ansible/awx.git
synced 2026-01-29 15:24:42 -03:30
Failing requirements update when scm_type != git
The `git_result` variable is incorrectly checked as being `defined` vs. `not skipped`. This causes SVN (or any non-GIT) project update to fail consistently when `doesRequirementsExist.stat.exists` is true Signed-off-by: DanielDisisto <daniel.disisto@didata.com.au>
This commit is contained in:
parent
b37040a85c
commit
3247983823
@ -152,7 +152,7 @@
|
||||
args:
|
||||
chdir: "{{project_path|quote}}/roles"
|
||||
register: galaxy_result
|
||||
when: doesRequirementsExist.stat.exists and (scm_version is undefined or (git_result is defined and git_result['before'] == git_result['after']))
|
||||
when: doesRequirementsExist.stat.exists and (scm_version is undefined or (git_result is not skipped and git_result['before'] == git_result['after']))
|
||||
changed_when: "'was installed successfully' in galaxy_result.stdout"
|
||||
|
||||
- name: fetch galaxy roles from requirements.yml (forced update)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user