Skip to content

Commit

Permalink
kfish: add https scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Jan 6, 2024
1 parent cccae31 commit ddc7062
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ailib/kfish/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def __init__(self, url, user='root', password='calvin', insecure=True, debug=Fal
if insecure:
ssl._create_default_https_context = ssl._create_unverified_context
url = url.replace('idrac-virtualmedia', 'https').replace('ilo5-virtualmedia', 'https')
if not url.startswith('http'):
url = f'https://{url}'
self.model, self.url, self.user, self.password = get_info(url, user, password)
if self.debug:
print(f"Using base url {self.url}")
Expand Down

0 comments on commit ddc7062

Please sign in to comment.