Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for flake8 failures in latest release pipeline results #1290

Merged
merged 1 commit into from
Aug 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion azure-devops/azext_devops/dev/common/_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azext_devops/dev/common/credential_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azext_devops/dev/team/invoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []

Expand Down