Merge pull request #22599 from rallytime/bp-19315

Backport #19315 to 2015.2
This commit is contained in:
Thomas S Hatch 2015-04-13 15:24:43 -06:00
commit 9a0011c8a8

View File

@ -2337,9 +2337,8 @@ def create_attach_volumes(name, kwargs, call=None, wait_to_finish=True):
if 'volume_id' not in volume_dict:
created_volume = create_volume(volume_dict, call='function', wait_to_finish=wait_to_finish)
created = True
for item in created_volume:
if 'volumeId' in item:
volume_dict['volume_id'] = item['volumeId']
if 'volumeId' in created_volume:
volume_dict['volume_id'] = created_volume['volumeId']
attach = attach_volume(
name,