From 55d3cc09f3f4470b2e6ea82a6286b1336f83a9e6 Mon Sep 17 00:00:00 2001 From: Jacob Wagner Date: Wed, 24 Sep 2014 14:46:01 -0500 Subject: [PATCH] added check to make sure that the volume group variable exists since the variable is needed for cinder lvm but not netapp --- rpc_deployment/roles/cinder_device_add/tasks/device_add.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc_deployment/roles/cinder_device_add/tasks/device_add.yml b/rpc_deployment/roles/cinder_device_add/tasks/device_add.yml index ca919f64bd..e0ee5ba2c9 100644 --- a/rpc_deployment/roles/cinder_device_add/tasks/device_add.yml +++ b/rpc_deployment/roles/cinder_device_add/tasks/device_add.yml @@ -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 }}"