Skip to content
This repository was archived by the owner on Aug 22, 2020. It is now read-only.

Conversation

mrochford
Copy link

Was running into issues with returns of '431' return code with no data from the cloudstack API. Logic will return the API error.

if len(error_data) == 1:
error_msg = 'ERROR: %s - %s' % (error_data.keys()[0],error_data[error_data.keys()[0]]['errortext'])
else:
error_msg = 'ERROR: Recieved muliaple errors.'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

muliaple == multiple?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants