This commit is contained in:
Travis Prescott 2016-03-10 14:33:40 -08:00
Родитель f9c1e73e77 6ec0c20922
Коммит 711fcc200e
2 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -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):