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

rax_cbs module: Don't fail when the volume is not found
This commit is contained in:
James Cammarata 2014-05-27 13:47:32 -05:00
commit b1d76b37db

View file

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