Skip to content

Commit

Permalink
Make digital ocean handle errors a little better
Browse files Browse the repository at this point in the history
  • Loading branch information
techhat committed Dec 6, 2013
1 parent 870f150 commit 0656e10
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions salt/cloud/clouds/digital_ocean.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,10 +496,7 @@ def query(method='droplets', droplet_id=None, command=None, args=None):
result = json.loads(content)
if result.get('status', '').lower() == 'error':
raise SaltCloudSystemExit(
''.join(
'{0}: {1}\n'.format(k, '\n'.join(v)) for (k, v) in
result.get('error_message', {}).items()
)
pprint.pformat(result.get('error_message', {}))
)

return result
Expand Down

0 comments on commit 0656e10

Please sign in to comment.