mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-19 15:21:27 +00:00
Don't fail in rax_cbs when the volume is not found
This commit is contained in:
@@ -141,6 +141,8 @@ def cloud_block_storage(module, state, name, description, meta, size,
|
||||
except ValueError:
|
||||
try:
|
||||
volume = cbs.find(name=name)
|
||||
except pyrax.exc.NotFound:
|
||||
pass
|
||||
except Exception, e:
|
||||
module.fail_json(msg='%s' % e)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user