aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJerry Flood <jf9860@att.com>2017-11-14 16:33:25 -0500
committerJerry Flood <jf9860@att.com>2017-11-14 16:33:41 -0500
commitfde1f6c4a539638c90c6afccffb8889efdd97735 (patch)
treec63bb8dd3afb4d7db859dde162ff4c2146679da5
parent95ac50513a104b4ec83f2379f39845942c9e9ed2 (diff)
Fixed incidental bug processing volumes
Issue: TEST-71 Change-Id: If6b39428359f25ead032eb1939971247e5f95b39 Signed-off-by: Jerry Flood <jf9860@att.com>
-rw-r--r--heatbridge/heatbridge/AAIManager.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/heatbridge/heatbridge/AAIManager.py b/heatbridge/heatbridge/AAIManager.py
index 06d1553..2abf061 100644
--- a/heatbridge/heatbridge/AAIManager.py
+++ b/heatbridge/heatbridge/AAIManager.py
@@ -45,7 +45,7 @@ class AAIManager:
volumes = []
body['volumes'] = volumes
for volume in volumes_dict:
- volumes['volume'] = self.create_volume(volume);
+ volumes.append(self.create_volume(volume));
relations = [];
if self.__exists(server_info_dict['metadata'], 'vnf_id'):
@@ -94,6 +94,7 @@ class AAIManager:
def create_volume(self, volume_dict):
#setup
volume = dict()
+ if 'volume' in volume_dict:
volume['volume-id'] = volume_dict['volume']['id']
#volume['volume-selflink']
#volume['resource-version']