[Bug 1064835] Re: keystoneclient fails on SSL certificates that work for other services

Alan Pevec 1064835 at bugs.launchpad.net
Fri Oct 19 10:18:41 UTC 2012


So does the following fix this issue?

--- a/keystoneclient/shell.py
+++ b/keystoneclient/shell.py
@@ -131,7 +131,7 @@ class OpenStackIdentityShell(object):
 
         parser.add_argument('--os-cacert',
                             metavar='<ca-certificate>',
-                            default=env('OS_CA_CERT'),
+                            default=env('OS_CA_CERT', default=None),
                             help='Defaults to env[OS_CACERT]')
         parser.add_argument('--os_cacert',
                             help=argparse.SUPPRESS)


or more generic:

--- a/keystoneclient/shell.py
+++ b/keystoneclient/shell.py
@@ -42,7 +42,7 @@ def env(*vars, **kwargs):
         value = os.environ.get(v, None)
         if value:
             return value
-    return kwargs.get('default', '')
+    return kwargs.get('default', None)
 
 
 class OpenStackIdentityShell(object):

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to keystone in Ubuntu.
https://bugs.launchpad.net/bugs/1064835

Title:
  keystoneclient fails on SSL certificates that work for other services

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-keystoneclient/+bug/1064835/+subscriptions



More information about the Ubuntu-server-bugs mailing list