fixing aiuth source (#42923)

(cherry picked from commit 750774d768)
This commit is contained in:
Zim Kalinowski 2018-07-27 14:48:17 +08:00 committed by Matt Clay
parent 1b2c691980
commit c2aadff306
2 changed files with 2 additions and 3 deletions

View file

@ -23,8 +23,7 @@ except ImportError:
AZURE_COMMON_ARGS = dict(
auth_source=dict(
type='str',
choices=['auto', 'cli', 'env', 'credential_file', 'msi'],
default='auto'
choices=['auto', 'cli', 'env', 'credential_file', 'msi']
),
profile=dict(type='str'),
subscription_id=dict(type='str', no_log=True),

View file

@ -70,6 +70,7 @@ options:
auth_source:
description:
- Controls the source of the credentials to use for authentication.
- If not specified, ANSIBLE_AZURE_AUTH_SOURCE environment variable will be used and default to C(auto) if variable is not defined.
- C(auto) will follow the default precedence of module parameters -> environment variables -> default profile in credential file
C(~/.azure/credentials).
- When set to C(cli), the credentials will be sources from the default Azure CLI profile.
@ -84,7 +85,6 @@ options:
- credential_file
- env
- msi
default: auto
version_added: 2.5
api_profile:
description: