aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsgdt6900 <rhanafy.ext@orange.com>2018-01-24 10:06:37 +0200
committersgdt6900 <rhanafy.ext@orange.com>2018-01-24 10:06:37 +0200
commit5f8931f1767e99cbf5f074504a8bf625d351a38e (patch)
tree29c299f12f98bf31e3db8515cc74cac8cdda7558
parent36fe604a69eaa4c36f309bd68e36d75c3850c5c4 (diff)
fix syntax error
Change-Id: If6fb264c7da16700e80f0b6222a045ec8689c1bd Signed-off-by: sgdt6900 <rhanafy.ext@orange.com>
-rw-r--r--moon_interface/moon_interface/authz_requests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/moon_interface/moon_interface/authz_requests.py b/moon_interface/moon_interface/authz_requests.py
index 12c190c7..2ef0e0a1 100644
--- a/moon_interface/moon_interface/authz_requests.py
+++ b/moon_interface/moon_interface/authz_requests.py
@@ -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"]