зеркало из https://github.com/microsoft/azure-cli.git
Merge branch 'master' of https://github.com/Azure/azure-cli into UpdateSystemSetupDoc
This commit is contained in:
Коммит
711fcc200e
|
@ -39,10 +39,12 @@
|
|||
<Compile Include="azure\cli\tests\test_autocommand.py" />
|
||||
<Compile Include="azure\cli\tests\test_connection_verify.py" />
|
||||
<Compile Include="azure\cli\tests\test_output.py" />
|
||||
<Compile Include="azure\cli\_debug.py" />
|
||||
<Compile Include="azure\cli\_locale.py" />
|
||||
<Compile Include="azure\cli\tests\test_profile.py" />
|
||||
<Compile Include="azure\cli\_argparse.py" />
|
||||
<Compile Include="azure\cli\_logging.py" />
|
||||
<Compile Include="azure\cli\_output.py" />
|
||||
<Compile Include="azure\cli\_profile.py" />
|
||||
<Compile Include="azure\cli\_session.py">
|
||||
<SubType>Code</SubType>
|
||||
|
|
|
@ -1,12 +1,18 @@
|
|||
from .._profile import Profile
|
||||
import azure.cli._debug as _debug
|
||||
import azure.cli as cli
|
||||
from .._logging import logger
|
||||
|
||||
def get_mgmt_service_client(client_type, config_type):
|
||||
profile = Profile()
|
||||
client = client_type(config_type(*profile.get_login_credentials()))
|
||||
config = config_type(*profile.get_login_credentials())
|
||||
config.log_name = 'az'
|
||||
config.log_level = logger.level
|
||||
|
||||
client = client_type(config)
|
||||
_debug.allow_debug_connection(client)
|
||||
client.config.add_user_agent("AZURECLI_{}".format(cli.__version__))
|
||||
|
||||
return client
|
||||
|
||||
def get_data_service_client(service_type, account_name, account_key):
|
||||
|
|
Загрузка…
Ссылка в новой задаче