nautobot-app-nornir icon indicating copy to clipboard operation
nautobot-app-nornir copied to clipboard

Better error handling when using `config_context` for secret_access_type.

Open itdependsnetworks opened this issue 1 year ago • 1 comments

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.

itdependsnetworks avatar Mar 29 '23 01:03 itdependsnetworks