Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
Binyang2014 committed May 19, 2021
1 parent e2aa92e commit 6c8e2ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pylon/config/pylon.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ def run(self):
machine_list = self.cluster_configuration['machine-list']
master_ip = [host['hostip'] for host in machine_list if host.get('pai-master') == 'true'][0]
port = self.service_configuration['port']
sslConfig = {}
sslConfig = {'port': 443}
if 'ssl' in self.service_configuration:
sslConfig= self.service_configuration['ssl']
sslConfig['port'] = sslConfig['port'] if 'port' in sslConfig else 443
sslPort = sslConfig['port']
uri = 'http://{0}:{1}'.format(master_ip, port)
uriHttps = 'https://{0}:{1}'.format(master_ip, sslPort)
Expand Down

0 comments on commit 6c8e2ed

Please sign in to comment.