fix syntax error 35/51035/1
authorsgdt6900 <rhanafy.ext@orange.com>
Wed, 24 Jan 2018 08:06:37 +0000 (10:06 +0200)
committersgdt6900 <rhanafy.ext@orange.com>
Wed, 24 Jan 2018 08:06:37 +0000 (10:06 +0200)
Change-Id: If6fb264c7da16700e80f0b6222a045ec8689c1bd
Signed-off-by: sgdt6900 <rhanafy.ext@orange.com>
moon_interface/moon_interface/authz_requests.py

index 12c190c..2ef0e0a 100644 (file)
@@ -33,7 +33,7 @@ class AuthzRequest:
             raise exceptions.KeystoneProjectError("Unknown Project ID {}".format(ctx['project_id']))
         self.container_chaining = CACHE.container_chaining[ctx['project_id']]
 
-        if len(self.container_chaining) == 0 or not all(k in self.container_data for k in ("container_id", "hostname", "hostip", "port")):
+        if len(self.container_chaining) == 0 or not all(k in self.container_chaining[0] for k in ("container_id", "hostname", "hostip", "port")):
             raise exceptions.MoonError('Void container chaining')
 
         self.pdp_container = self.container_chaining[0]["container_id"]