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
commit 511963b792

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 }}"