@@ -100,7 +100,7 @@ def _handle_challenge_phase(login_server,
100100
101101 request_url = 'https://' + login_server + '/v2/'
102102 logger .debug (add_timestamp ("Sending a HTTP Get request to {}" .format (request_url )))
103- challenge = requests .get (request_url , verify = ( not should_disable_connection_verify () ))
103+ challenge = requests .get (request_url , verify = not should_disable_connection_verify ())
104104
105105 if challenge .status_code != 401 or 'WWW-Authenticate' not in challenge .headers :
106106 from ._errors import CONNECTIVITY_CHALLENGE_ERROR
@@ -164,7 +164,7 @@ def _get_aad_token_after_challenge(cli_ctx,
164164
165165 logger .debug (add_timestamp ("Sending a HTTP Post request to {}" .format (authhost )))
166166 response = requests .post (authhost , urlencode (content ), headers = headers ,
167- verify = ( not should_disable_connection_verify () ))
167+ verify = not should_disable_connection_verify ())
168168
169169 if response .status_code == 429 :
170170 if is_diagnostics_context :
@@ -200,7 +200,7 @@ def _get_aad_token_after_challenge(cli_ctx,
200200
201201 logger .debug (add_timestamp ("Sending a HTTP Post request to {}" .format (authhost )))
202202 response = requests .post (authhost , urlencode (content ), headers = headers ,
203- verify = ( not should_disable_connection_verify () ))
203+ verify = not should_disable_connection_verify ())
204204
205205 if response .status_code not in [200 ]:
206206 from ._errors import CONNECTIVITY_ACCESS_TOKEN_ERROR
@@ -301,7 +301,7 @@ def _get_token_with_username_and_password(login_server,
301301
302302 logger .debug (add_timestamp ("Sending a HTTP Post request to {}" .format (authhost )))
303303 response = requests .post (authhost , urlencode (content ), headers = headers ,
304- verify = ( not should_disable_connection_verify () ))
304+ verify = not should_disable_connection_verify ())
305305
306306 if response .status_code != 200 :
307307 from ._errors import CONNECTIVITY_ACCESS_TOKEN_ERROR
@@ -365,7 +365,7 @@ def _get_credentials(cmd, # pylint: disable=too-many-statements
365365 url = 'https://' + login_server + '/v2/'
366366 try :
367367 logger .debug (add_timestamp ("Sending a HTTP Get request to {}" .format (url )))
368- challenge = requests .get (url , verify = ( not should_disable_connection_verify () ))
368+ challenge = requests .get (url , verify = not should_disable_connection_verify ())
369369 if challenge .status_code == 403 :
370370 raise CLIError ("Looks like you don't have access to registry '{}'. "
371371 "To see configured firewall rules, run 'az acr show --query networkRuleSet --name {}'. "
0 commit comments