Support OS_KEY/OS_CERT environment variables
heatclient allows to provide client certificate/key using --os-key/cert options but not using usual environment variables. This change uses OS_KEY/OS_CERT environment variables as default values for client certificate/key. Closes-Bug: #1564930 Change-Id: Ie7a4dce2a9b0e498ee3b9f6cb36a8988ea3a13fc
This commit is contained in:
parent
349a2c85b1
commit
17b4b16ace
|
@ -59,6 +59,7 @@ class HeatShell(object):
|
|||
|
||||
parser.add_argument(
|
||||
'--os-cert',
|
||||
default=utils.env('OS_CERT'),
|
||||
help=_('Path of certificate file to use in SSL connection. '
|
||||
'This file can optionally be prepended with '
|
||||
'the private key.'))
|
||||
|
@ -70,6 +71,7 @@ class HeatShell(object):
|
|||
{'arg': '--os-cert'})
|
||||
|
||||
parser.add_argument('--os-key',
|
||||
default=utils.env('OS_KEY'),
|
||||
help=_('Path of client key to use in SSL '
|
||||
'connection. This option is not necessary '
|
||||
'if your key is prepended to your cert '
|
||||
|
|
Loading…
Reference in New Issue