Fix bind mount of glance images

Bind mount should be created when glance_nfs_client is
either undefined OR empty

Change-Id: I59b183dc376fd64300d088c9831fe5ea2e7412f0
Closes-Bug: #1638907
This commit is contained in:
Travis Truman 2016-11-03 10:56:26 -04:00 committed by Jesse Pretorius (odyssey4me)
parent 2ab8a81cd3
commit 677ceb20a5

View File

@ -25,7 +25,9 @@
list_of_bind_mounts:
- bind_dir_path: "/var/lib/glance/images"
mount_path: "/openstack/{{ inventory_hostname }}"
when: (glance_default_store == "file") and (glance_nfs_client is not defined)
when:
- glance_default_store == "file"
- (glance_nfs_client is not defined) or (glance_nfs_client | length == 0)
- include: common-tasks/os-lxc-container-setup.yml
static: no
when: (glance_default_store != "file") or (glance_nfs_client is defined)