Merge pull request #7542 from sivel/rax-cdb-notfound

rax_cbs module: Don't fail when the volume is not found
reviewable/pr18780/r1
James Cammarata 11 years ago
commit a64fe3ff5e

@ -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)

Loading…
Cancel
Save