Merge "Added constraints to qemu save dir check and move"

This commit is contained in:
Jenkins
2017年04月04日 20:25:03 +00:00
committed by Gerrit Code Review

View File

@@ -24,12 +24,16 @@
until:_qemu_save_dir.stat.exists | bool
retries:5
delay:10
failed_when:false
register:_qemu_save_dir
- name:Check if the qemu save directory is empty
command:'ls -1A /var/lib/libvirt/qemu/save'
changed_when:false
register:_qemu_save_dir_contents
when:
- _qemu_save_dir.stat.isdir is defined
- _qemu_save_dir.stat.isdir | bool
- name:Move the existing save directory to nova_libvirt_save_path
command:"mv /var/lib/libvirt/qemu/save {{ nova_libvirt_save_path }}"
Reference in New Issue
openstack/openstack-ansible-os_nova
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.