forked from Azure/azure-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enabled lint error for trailing whitespaces
- Loading branch information
1 parent
f11d29c
commit 88d81aa
Showing
12 changed files
with
53 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import os | ||
import os | ||
from ._logging import logger | ||
|
||
DISABLE_VERIFY_VARIABLE_NAME = "AZURE_CLI_DISABLE_CONNECTION_VERIFICATION" | ||
|
||
def allow_debug_connection(client): | ||
if should_disable_connection_verify(): | ||
def allow_debug_connection(client): | ||
if should_disable_connection_verify(): | ||
logger.warning("Connection verification disabled by environment variable %s", | ||
DISABLE_VERIFY_VARIABLE_NAME) | ||
client.config.connection.verify = False | ||
|
||
def should_disable_connection_verify(): | ||
return bool(os.environ.get(DISABLE_VERIFY_VARIABLE_NAME)) | ||
|
||
def should_disable_connection_verify(): | ||
return bool(os.environ.get(DISABLE_VERIFY_VARIABLE_NAME)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
from .._profile import Profile | ||
from .._profile import Profile | ||
import azure.cli._debug as _debug | ||
import azure.cli as cli | ||
|
||
def get_service_client(client_type, config_type): | ||
profile = Profile() | ||
client = client_type(config_type(*profile.get_login_credentials())) | ||
_debug.allow_debug_connection(client) | ||
_debug.allow_debug_connection(client) | ||
client.config.add_user_agent("AZURECLI_{}".format(cli.__version__)) | ||
return client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters