diff options
| author | Steve Baker <sbaker@redhat.com> | 2019-10-21 01:08:42 +0000 |
|---|---|---|
| committer | Steve Baker <sbaker@redhat.com> | 2019-10-21 21:04:38 +0000 |
| commit | 877875a62fee39d8d287fae144c907e4a4fd146d (patch) | |
| tree | 9c33fad0372bb086d63846a5c76e6dacc1c91b8e /ironicclient/shell.py | |
| parent | 51fc3a7cf99f9c84ebbe03db4370561ccd1b49e4 (diff) | |
| download | python-ironicclient-stable/rocky.tar.gz | |
fix session cert argumentsrocky-eolrocky-em2.5.4stable/rocky
All calls to the deprecated ironic commands are failing because
unsupported cert arguments are being used to create the session
(cafile, certfile, keyfile)
This change switches to using the correct arguments. It is proposed
first on stable/stein because the deprecated ironic commands were
removed in Train.
Change-Id: If0730c0d9c1c3a700cbc6ae16b1c3752d0b681c4
Story: 2006748
Task: 37230
(cherry picked from commit 50f76012a843aa4bdd77a5fc0359f4d0cc10f1f8)
Diffstat (limited to 'ironicclient/shell.py')
| -rw-r--r-- | ironicclient/shell.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ironicclient/shell.py b/ironicclient/shell.py index 03f813a..cf0997d 100644 --- a/ironicclient/shell.py +++ b/ironicclient/shell.py @@ -442,8 +442,8 @@ class IronicShell(object): # named differently in keystoneauth, depending on whether they are # provided through CLI or loaded from conf options, here we unify them. for cli_ssl_opt, conf_ssl_opt in [ - ('os_cacert', 'cafile'), ('os_cert', 'certfile'), - ('os_key', 'keyfile')]: + ('os_cacert', 'cacert'), ('os_cert', 'cert'), + ('os_key', 'key')]: value = getattr(args, cli_ssl_opt) if value not in (None, ''): kwargs[conf_ssl_opt] = value |
