Skip to content
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_snapshot_info errors out when attempting to get snapshot by id #92

Closed
tylerauerbeck opened this issue May 22, 2021 · 0 comments · Fixed by #93
Closed

digital_ocean_snapshot_info errors out when attempting to get snapshot by id #92

tylerauerbeck opened this issue May 22, 2021 · 0 comments · Fixed by #93

Comments

@tylerauerbeck
Copy link
Contributor

SUMMARY

When attempting to retrieve a snapshot with snapshot_type: "by_id", I receive an error instead of the expected information on a specific snapshot.

TASK [community.digitalocean.digital_ocean_snapshot_info] ***************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: KeyError: 'snapshot'
fatal: [localhost]: FAILED! => {"changed": false, "msg": "'snapshot'"}
ISSUE TYPE
  • Bug Report
COMPONENT NAME

digital_ocean_snapshot_info

ANSIBLE VERSION

CONFIGURATION

OS / ENVIRONMENT
STEPS TO REPRODUCE
- hosts: localhost
  tasks:
    - community.digitalocean.digital_ocean_snapshot_info:
        snapshot_id: "12345678"
        snapshot_type: "by_id"
EXPECTED RESULTS

I would expect snapshot info on the snapshot with the specified id to be present or to receive an error message if that snapshot doesn't exist

ACTUAL RESULTS

The above error message is received.

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

Successfully merging a pull request may close this issue.

1 participant