Skip to content

Commit 3a129fb

Browse files
committed
ensure we don't return a garbage url from _get_deployment_url, which would have happened if we were already using a deployment url.
1 parent b7f9a97 commit 3a129fb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

azure-devops/azure/devops/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ def _get_organization_resource_location(self, location_id):
162162
def _get_deployment_url(self):
163163
pos = self.normalized_url.rfind('/')
164164
if pos > 0:
165-
return self.normalized_url[:pos]
165+
deployment_url = self.normalized_url[:pos]
166+
if deployment_url.find('://') > 0:
167+
return deployment_url
166168
return None
167169

168170
def _get_resource_location(self, url, location_id):

0 commit comments

Comments
 (0)