Digital Ocean Block Storage Bug (#41431)

pull/4420/head
ABond 2018-06-12 03:18:55 -04:00 committed by ansibot
parent d43414b82c
commit 4efe53edd5
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ class DOBlockStorage(object):
json = response.json
if status == 201:
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)
else:
raise DOBlockStorageException(json['message'])