diff --git a/azure-devops/azext_devops/dev/common/_credentials.py b/azure-devops/azext_devops/dev/common/_credentials.py index c631602f..6ed07c11 100644 --- a/azure-devops/azext_devops/dev/common/_credentials.py +++ b/azure-devops/azext_devops/dev/common/_credentials.py @@ -81,7 +81,7 @@ def normalize_url_for_key(url): components = uri_parse(url) normalized_url = components.scheme.lower() + '://' + components.netloc.lower() organization_name = components.path.lower() - if(organization_name and ('visualstudio.com' not in url.lower())): + if (organization_name and ('visualstudio.com' not in url.lower())): organization_name = organization_name.split('/')[1] normalized_url = normalized_url + '/' + organization_name return normalized_url diff --git a/azure-devops/azext_devops/dev/common/credential_store.py b/azure-devops/azext_devops/dev/common/credential_store.py index 51fd76c1..418c8336 100644 --- a/azure-devops/azext_devops/dev/common/credential_store.py +++ b/azure-devops/azext_devops/dev/common/credential_store.py @@ -89,7 +89,7 @@ def clear_password(self, key): file_token = self.get_PAT_from_file(key) if file_token: self.delete_PAT_from_file(key) - if(keyring_token is None and file_token is None): + if (keyring_token is None and file_token is None): raise CLIError(self._CRDENTIAL_NOT_FOUND_MSG) else: try: diff --git a/azure-devops/azext_devops/dev/team/invoke.py b/azure-devops/azext_devops/dev/team/invoke.py index 07954cce..9b4cad38 100644 --- a/azure-devops/azext_devops/dev/team/invoke.py +++ b/azure-devops/azext_devops/dev/team/invoke.py @@ -45,7 +45,7 @@ def invoke(area=None, resource=None, resource_areas = connection._get_resource_areas(force=True) - if(not area and not resource): + if (not area and not resource): print('Please wait a couple of seconds while we fetch all required information.') service_list = []