Skip to content

Commit 9326f56

Browse files
authored
Merge pull request #29 from britive/develop
v0.5.1
2 parents 166bfff + 8ff60b9 commit 9326f56

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22

33
All changes to the package starting with v0.3.1 will be logged here.
44

5+
## v0.5.1 [2022-10-21]
6+
#### What's New
7+
* None
8+
9+
#### Enhancements
10+
* None
11+
12+
#### Bug Fixes
13+
* Allow a port to be specified in a tenant URL
14+
15+
#### Dependencies
16+
* `britive~=2.11.0` from `britive~=2.10.0`
17+
18+
#### Other
19+
* None
20+
521
## v0.5.0 [2022-10-11]
622
#### What's New
723
* None

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
britive~=2.10.0
1+
britive~=2.11.0
22
certifi==2022.6.15
33
charset-normalizer==2.1.0
44
click==8.1.3

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = pybritive
3-
version = 0.5.0
3+
version = 0.5.1
44
author = Britive Inc.
55
author_email = support@britive.com
66
description = A pure Python CLI for Britive

src/pybritive/britive_cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def parse_tenant(self):
4141
domain = self.tenant_name.replace('https://', '').replace('http://', '') # remove scheme
4242
domain = domain.split('/')[0] # remove any paths as they will not be needed
4343
try:
44-
socket.gethostbyname_ex(domain) # if success then a full domain was provided
44+
domain_without_port = domain.split(':')[0]
45+
socket.gethostbyname_ex(domain_without_port) # if success then a full domain was provided
4546
return domain
4647
except socket.gaierror: # assume just the tenant name was provided (originally the only supported method)
4748
domain = f'{self.tenant_name}.britive-app.com'

0 commit comments

Comments
 (0)