mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Digital Ocean Block Storage Bug (#41431)
This commit is contained in:
@@ -199,7 +199,7 @@ class DOBlockStorage(object):
|
|||||||
json = response.json
|
json = response.json
|
||||||
if status == 201:
|
if status == 201:
|
||||||
self.module.exit_json(changed=True, id=json['volume']['id'])
|
self.module.exit_json(changed=True, id=json['volume']['id'])
|
||||||
elif status == 409 and json['id'] == 'already_exists':
|
elif status == 409 and json['id'] == 'conflict':
|
||||||
self.module.exit_json(changed=False)
|
self.module.exit_json(changed=False)
|
||||||
else:
|
else:
|
||||||
raise DOBlockStorageException(json['message'])
|
raise DOBlockStorageException(json['message'])
|
||||||
|
|||||||
Reference in New Issue
Block a user