|
|
@ -145,10 +145,7 @@ def cloud_block_storage(module, state, name, description, meta, size,
|
|
|
|
attempts=attempts)
|
|
|
|
attempts=attempts)
|
|
|
|
|
|
|
|
|
|
|
|
volume.get()
|
|
|
|
volume.get()
|
|
|
|
for key, value in vars(volume).iteritems():
|
|
|
|
instance = rax_to_dict(volume)
|
|
|
|
if (isinstance(value, NON_CALLABLES) and
|
|
|
|
|
|
|
|
not key.startswith('_')):
|
|
|
|
|
|
|
|
instance[key] = value
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result = dict(changed=changed, volume=instance)
|
|
|
|
result = dict(changed=changed, volume=instance)
|
|
|
|
|
|
|
|
|
|
|
@ -164,6 +161,7 @@ def cloud_block_storage(module, state, name, description, meta, size,
|
|
|
|
|
|
|
|
|
|
|
|
elif state == 'absent':
|
|
|
|
elif state == 'absent':
|
|
|
|
if volume:
|
|
|
|
if volume:
|
|
|
|
|
|
|
|
instance = rax_to_dict(volume)
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
volume.delete()
|
|
|
|
volume.delete()
|
|
|
|
changed = True
|
|
|
|
changed = True
|
|
|
|