Skip to content

Commit df4053c

Browse files
committed
🚒 issue with port number's type
Signed-off-by: Guyzmo <[email protected]>
1 parent 50954cd commit df4053c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

git_repo/repo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ def setup_service(service):
534534
print('Enter the service\'s domain name:')
535535
new_conf['fqdn'] = input('[{}]> '.format(service.fqdn))
536536
print('Enter the service\'s port:')
537-
new_conf['port'] = input('[443]> ') or 443
537+
new_conf['port'] = input('[443]> ') or '443'
538538
print('Are you connecting using HTTPS? (you should):')
539539
if 'n' in input(' [Yn]> ').lower():
540540
new_conf['scheme'] = 'http'

git_repo/services/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def __init__(self, r=None, c=None, hc=[]):
205205

206206
@classmethod
207207
def build_url(cls):
208-
netloc = cls.fqdn if not getattr(cls, 'port', None) else ':'.join([cls.fqdn, cls.port])
208+
netloc = cls.fqdn if not getattr(cls, 'port', None) else '{}:{}'.format(cls.fqdn, cls.port)
209209
if not getattr(cls, 'scheme', None):
210210
cls.scheme = 'https'
211211
return ParseResult(cls.scheme, netloc, *['']*4).geturl()

0 commit comments

Comments
 (0)