Skip to content

Commit

Permalink
Merge pull request #572 from nautobot/patch-fix_571
Browse files Browse the repository at this point in the history
Ensure URL Scheme in POST
  • Loading branch information
jdrew82 authored Oct 21, 2024
2 parents ea7ebbe + 760e296 commit de906f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/571.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed requests call that was missing URL scheme.
2 changes: 1 addition & 1 deletion nautobot_ssot/integrations/aristacv/utils/cloudvision.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit de906f6

Please sign in to comment.