added check to make sure that the volume group variable exists since the variable is needed for cinder lvm but not netapp

This commit is contained in:
Jacob Wagner 2014-09-24 14:46:01 -05:00
parent 6426d03720
commit 55d3cc09f3

View File

@ -28,5 +28,5 @@
done
fi
with_items: cinder_backends|dictsort
when: cinder_backends is defined and is_metal != true
when: cinder_backends is defined and is_metal != true and cinder_backends[item.0]['volume_group'] is defined
delegate_to: "{{ physical_host }}"