File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/azure-cli/azure/cli/command_modules/acr Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments