Skip to content

Commit

Permalink
Update nautobot_plugin_nornir/plugins/credentials/nautobot_secrets.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
  • Loading branch information
nkallergis and jeffkala authored Aug 1, 2024
1 parent 08d0aa1 commit d7c54d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def _get_access_type_value(device_obj):
"""
if PLUGIN_CFG.get("use_config_context", {}).get("secrets"):
access_type_str = device_obj.get_config_context()["nautobot_plugin_nornir"]["secret_access_type"].upper()
if access_type_str == "HTTP(S)":
if access_type_str in ["HTTP(S)", "HTTP"]:
access_type_str = "HTTP"
access_type = getattr(SecretsGroupAccessTypeChoices, f"TYPE_{access_type_str}")
else:
Expand Down

0 comments on commit d7c54d1

Please sign in to comment.