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

Add check_mode support to hashivault_pki_role_list #485

Merged

Conversation

dezeroku
Copy link
Contributor

@dezeroku dezeroku commented Jul 2, 2024

With this change in place data can be read in check mode

except Exception:
return {'data': []}
except Exception as e:
return {'failed': True, 'data': [], 'msg': str(e)}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure if it's cleaner to drop data completely for the failed case output or return an empty list?

Copy link
Owner

Choose a reason for hiding this comment

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

I'm not sure if any other getters support check mode to have a pattern

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@TerryHowe TerryHowe merged commit a8fc2e0 into TerryHowe:main Jul 7, 2024
3 checks passed
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 this pull request may close these issues.

2 participants