Make --os-profile load from environment variables
--os-profile argument can be loaded from OS_PROFILE environment variables to avoid repeating --os-profile in openstack commands. Change-Id: I8615a972e8a1e8a39e97c3d6e7f07add4b6ab599
This commit is contained in:
parent
2c9d95912e
commit
db9673f16f
|
@ -283,6 +283,7 @@ class OpenStackShell(app.App):
|
|||
'--os-profile',
|
||||
metavar='hmac-key',
|
||||
dest='profile',
|
||||
default=utils.env('OS_PROFILE'),
|
||||
help=_('HMAC key for encrypting profiling context data'),
|
||||
)
|
||||
# NOTE(dtroyer): This global option should have been named
|
||||
|
|
|
@ -112,7 +112,7 @@ global_options = {
|
|||
'--os-default-domain': (DEFAULT_DOMAIN_NAME, True, True),
|
||||
'--os-cacert': ('/dev/null', True, True),
|
||||
'--timing': (True, True, False),
|
||||
'--os-profile': ('SECRET_KEY', True, False),
|
||||
'--os-profile': ('SECRET_KEY', True, True),
|
||||
'--os-interface': (DEFAULT_INTERFACE, True, True)
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
features:
|
||||
- |
|
||||
``--os-profile`` argument can be loaded from ``OS_PROFILE``
|
||||
environment variables to avoid repeating ``--os-profile``
|
||||
in openstack commands.
|
Loading…
Reference in New Issue