-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
Description
Environment summary
Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
rm -rf $HOME/.local/lib/python3.6
mkdir $HOME/.local/lib/python3.6/site-packages
pip install --no-cache-dir --user --upgrade --pre azure-cli --extra-index-url https://azureclinightly.blob.core.windows.net/packages
pip install --user --upgrade --pre azure-cli-acr azure-cli-keyvault --extra-index-url https://azureclinightly.blob.core.windows.net/packages
CLI Version: What version of the CLI and modules are installed? (Use az --version)
azure-cli (2.0.2+1.dev20170406)
acr (2.0.0+1.dev20170406)
acs (2.0.2+1.dev20170406)
appservice (0.1.2+1.dev20170406)
batch (2.0.0+1.dev20170406)
cloud (2.0.0+1.dev20170406)
component (2.0.0+1.dev20170406)
configure (2.0.2+1.dev20170406)
container (0.1.2+1.dev20170406)
core (2.0.2+1.dev20170406)
documentdb (0.1.2+1.dev20170406)
feedback (2.0.0+1.dev20170406)
find (0.1.2rc1+1.dev20170312)
iot (0.1.2+1.dev20170406)
keyvault (2.0.0+1.dev20170406)
lab (0.0.1+1.dev20170406)
monitor (0.0.1+1.dev20170406)
network (2.0.2+1.dev20170406)
nspkg (2.0.0+1.dev20170406)
profile (2.0.2+1.dev20170406)
redis (0.1.1b3+1.dev20170406)
resource (2.0.2+1.dev20170406)
role (2.0.1+1.dev20170406)
sql (2.0.0+1.dev20170406)
storage (2.0.2+1.dev20170406)
vm (2.0.2+1.dev20170406)
Python (Linux) 3.6.1 (default, Mar 27 2017, 00:27:06)
[GCC 6.3.1 20170306]
OS Version: What OS and version are you using?
Arch Linux, up to date
Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
zsh
Description
$ az login --service-principal --username xxx --password xxx --tenant xxx
'dict' object cannot be interpreted as an integer
Traceback (most recent call last):
File "/home/cole/.local/lib/python3.6/site-packages/azure/cli/main.py", line 37, in main
cmd_result = APPLICATION.execute(args)
File "/home/cole/.local/lib/python3.6/site-packages/azure/cli/core/application.py", line 157, in execute
result = expanded_arg.func(params)
File "/home/cole/.local/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 367, in _execute_command
raise ex
File "/home/cole/.local/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 362, in _execute_command
result = op(client, **kwargs) if client else op(**kwargs)
File "/home/cole/.local/lib/python3.6/site-packages/azure/cli/command_modules/profile/custom.py", line 79, in login
tenant)
File "/home/cole/.local/lib/python3.6/site-packages/azure/cli/core/_profile.py", line 135, in find_subscriptions_on_login
tenant))
File "/home/cole/.local/lib/python3.6/site-packages/azure/cli/core/_profile.py", line 500, in save_service_principal_cred
self._service_principal_creds.pop(matched[0])
TypeError: 'dict' object cannot be interpreted as an integer
If I rm -rf ~/.azure first, it goes away. Maybe a bug in merging stuff together?
Also, weird though, since my script sets I wasn't properly exporting it, when I do, I avoid this issue since each script run gets its own config directory.AZURE_CONFIG_DIR to a temp dir, so it should be like new every time...
Reactions are currently unavailable