summaryrefslogtreecommitdiff
path: root/ceilometerclient/shell.py
diff options
context:
space:
mode:
authorStefano Zilli <stefano.zilli@cern.ch>2013-09-13 09:08:19 +0200
committerStefano Zilli <stefano.zilli@cern.ch>2013-10-01 08:34:04 +0200
commit544e6217e58a9eaee67e98f27cb9385ee412ba79 (patch)
tree355e8428b2b2ab978584e09c41a4e337164ec876 /ceilometerclient/shell.py
parentb961738765976e77711d909eec1ecc402fa8a484 (diff)
downloadpython-ceilometerclient-544e6217e58a9eaee67e98f27cb9385ee412ba79.tar.gz
Added support to --os-cacert
Closes-Bug: #1224343 Change-Id: Ib0549d4496c47900c81cc970b99bcff25cad0040
Diffstat (limited to 'ceilometerclient/shell.py')
-rw-r--r--ceilometerclient/shell.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/ceilometerclient/shell.py b/ceilometerclient/shell.py
index 3ea531a..b6d3939 100644
--- a/ceilometerclient/shell.py
+++ b/ceilometerclient/shell.py
@@ -76,11 +76,17 @@ class CeilometerShell(object):
' This option is not necessary if your key is '
'prepended to your cert file.')
- parser.add_argument('--ca-file',
- help='Path of CA SSL certificate(s) used to verify'
- ' the remote server certificate. Without this '
+ parser.add_argument('--os-cacert',
+ metavar='<ca-certificate-file>',
+ dest='os_cacert',
+ default=utils.env('OS_CACERT'),
+ help='Path of CA TLS certificate(s) used to verify'
+ 'the remote server\'s certificate. Without this '
'option ceilometer looks for the default system '
'CA certificates.')
+ parser.add_argument('--ca-file',
+ dest='os_cacert',
+ help='DEPRECATED! Use --os-cacert.')
parser.add_argument('--timeout',
default=600,