generated from ansible-collections/collection_template
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
digital_ocean_droplet
action raises python error when api returns 500
#192
Labels
bug
Something isn't working
Comments
I have the same issue.
Collection
Manifest
Issue is the same as in topic |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SUMMARY
When API returns 500 status,
digital_ocean_droplet
withaction: create
raises python error.ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
MacBookAir10,1 (M1, aarch64)
Darwin 21.1.0 Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:24 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T8101 arm64
STEPS TO REPRODUCE
You can't reproduce actual API failure, but it can be reproduced by mocking response with code 500 and body:
Raised
'NoneType' object has no attribute 'get'
Stacktrace points to:
community.digitalocean/plugins/modules/digital_ocean_droplet.py
Line 708 in 3e81f0c
I suppose
status_code
should be checked beforedroplet
anddroplet_id
are fetched from responseThanks!
The text was updated successfully, but these errors were encountered: