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

Better error handling when using config_context for secret_access_type. #83

Open
itdependsnetworks opened this issue Mar 29, 2023 · 1 comment

Comments

@itdependsnetworks
Copy link
Contributor

Environment

  • Python version: latest
  • Nautobot version: latest
  • nautobot-plugin-nornir version: latest

Proposed Functionality

Pre-emptivly check, and allow sane error

    access_type_str = device_obj.get_config_context()["nautobot_plugin_nornir"]["secret_access_type"].upper()
KeyError: 'nautobot_plugin_nornir'

Use Case

More clear guidance to the user.

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

No branches or pull requests

1 participant