MNAIO: When saving VM images RC=2 is not a fail
When executing the save, the return code of 2 indicates a change was implemented - but I forgot to include that condition for failed_when. As it stands now the task will be considered failed which is a bit useless. Change-Id: Ie8b36335048d2dcf6d0f9e66f8440430f4a68398
This commit is contained in:
parent
caf4818e7f
commit
ed057ece01
@ -64,6 +64,7 @@
|
||||
with_items: "{{ groups['pxe_servers'] }}"
|
||||
register: _save_disk_image
|
||||
changed_when: _save_disk_image.rc == 2
|
||||
failed_when: _save_disk_image.rc not in [0, 2]
|
||||
|
||||
- name: Save VM definition
|
||||
copy:
|
||||
|
Loading…
x
Reference in New Issue
Block a user