diff options
| author | Steve Martinelli <stevemar@ca.ibm.com> | 2014-11-17 21:35:30 -0500 |
|---|---|---|
| committer | Steve Martinelli <stevemar@ca.ibm.com> | 2015-01-16 02:52:15 -0500 |
| commit | 1d75edb1678e42a36879245c6ebac69c14a5f965 (patch) | |
| tree | 96fd9fe1bbb32b7a679b1e472aee7fb9de29884a /examples | |
| parent | 9057cedfd4acce5b50af28ef2475952e8530ba29 (diff) | |
| download | python-openstackclient-1d75edb1678e42a36879245c6ebac69c14a5f965.tar.gz | |
Default user domain id and project domain id
If either of OS_USER_DOMAIN_ID or OS_USER_DOMAIN_NAME are present
then we don't tinker with anything. Otherwise, we should set
the USER_DOMAIN_ID to 'OS_DEFAULT_DOMAIN', as this provides a better UX,
since the end user doesn't have to specify these arguments.
Same logic applies for OS_PROJECT_DOMAIN_ID.
Closes-Bug: #1385338
Change-Id: I8a4034c16a1dd50d269f809abab8e960d5de20f7
Diffstat (limited to 'examples')
| -rwxr-xr-x | examples/common.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/common.py b/examples/common.py index ad3a5e49..1ccea2a0 100755 --- a/examples/common.py +++ b/examples/common.py @@ -102,6 +102,12 @@ def base_parser(parser): default=env('OS_CACERT'), help='CA certificate bundle file (Env: OS_CACERT)', ) + parser.add_argument( + '--os-default-domain', + metavar='<auth-domain>', + default='default', + help='Default domain ID, default=default (Env: OS_DEFAULT_DOMAIN)', + ) verify_group = parser.add_mutually_exclusive_group() verify_group.add_argument( '--verify', |
