]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fixing syntax issue. I had a 2.7+ style dict comprehension, so I made it 2.6 friendly.
authorTyler Smith <tylesmit@cisco.com>
Mon, 1 Aug 2011 15:40:10 +0000 (08:40 -0700)
committerTyler Smith <tylesmit@cisco.com>
Mon, 1 Aug 2011 15:40:10 +0000 (08:40 -0700)
quantum/client.py

index 5f832398b2bbbdedcc27f101633b84b6a83d13ac..1c470df227aaed047c0b5ecdb236d3d7d6e7dbbc 100644 (file)
@@ -122,7 +122,7 @@ class Client(object):
             
             # Open connection and send request, handling SSL certs
             certs = {'key_file':self.key_file, 'cert_file':self.cert_file}
-            certs = {x:certs[x] for x in certs if x != None}
+            certs = dict((x,certs[x]) for x in certs if certs[x] != None)
 
             if self.use_ssl and len(certs):
                 c = connection_type(self.host, self.port, **certs)