Skip to content

Commit efa2af3

Browse files
committed
Address comments
1 parent 9ab1c4b commit efa2af3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/azure-cli/azure/cli/command_modules/acr/_validators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,14 @@ def validate_registry_name(cmd, namespace):
111111
suffixes = cmd.cli_ctx.cloud.suffixes
112112
dnl_hash = registry.find("-")
113113

114-
if registry and dnl_hash > 0:
114+
if dnl_hash > 0:
115115
logger.warning(
116116
"Registry name is %s. The following suffix '%s' is automatically omitted.",
117117
registry[:dnl_hash],
118118
registry[dnl_hash:])
119119
namespace.registry_name = registry[:dnl_hash]
120120
# Some clouds do not define 'acr_login_server_endpoint' (e.g. AzureGermanCloud)
121-
elif registry and hasattr(suffixes, 'acr_login_server_endpoint'):
121+
elif hasattr(suffixes, 'acr_login_server_endpoint'):
122122
acr_suffix = suffixes.acr_login_server_endpoint
123123
pos = registry.find(acr_suffix)
124124
if pos > 0:

0 commit comments

Comments
 (0)