diff --git a/changes/571.fixed b/changes/571.fixed new file mode 100644 index 00000000..67cf61e5 --- /dev/null +++ b/changes/571.fixed @@ -0,0 +1 @@ +Fixed requests call that was missing URL scheme. \ No newline at end of file diff --git a/nautobot_ssot/integrations/aristacv/utils/cloudvision.py b/nautobot_ssot/integrations/aristacv/utils/cloudvision.py index 2e242e50..49eaebd3 100644 --- a/nautobot_ssot/integrations/aristacv/utils/cloudvision.py +++ b/nautobot_ssot/integrations/aristacv/utils/cloudvision.py @@ -56,7 +56,7 @@ def __init__(self, config: CloudVisionAppConfig): call_creds = grpc.access_token_call_credentials(token) elif config.cvp_user != "" and config.cvp_password != "": response = requests.post( - f"{parsed_url.hostname}:{parsed_url.port}/cvpservice/login/authenticate.do", + f"{parsed_url.scheme}://{parsed_url.hostname}:{parsed_url.port}/cvpservice/login/authenticate.do", auth=(config.cvp_user, config.cvp_password), timeout=60, verify=config.verify_ssl,