summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorKenjiro Nakayama <nakayamakenjiro@gmail.com>2018-01-07 12:07:30 +0900
committerKenjiro Nakayama <nakayamakenjiro@gmail.com>2018-01-09 00:00:19 +0900
commite3417ec5af98cc0a2f991073e58e94883433d2f9 (patch)
treec106f6b19614970ae55e8aaeebdedeb714767fb9 /roles
parenta5eee09d02120bb16d7f81d1b05982e1a69df4dc (diff)
downloadopenshift-e3417ec5af98cc0a2f991073e58e94883433d2f9.tar.gz
openshift-e3417ec5af98cc0a2f991073e58e94883433d2f9.tar.bz2
openshift-e3417ec5af98cc0a2f991073e58e94883433d2f9.tar.xz
openshift-e3417ec5af98cc0a2f991073e58e94883433d2f9.zip
Add key existing check to collect facts for rolebidings
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_logging/library/openshift_logging_facts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_logging/library/openshift_logging_facts.py b/roles/openshift_logging/library/openshift_logging_facts.py
index 302a9b4c9..f810ae39c 100644
--- a/roles/openshift_logging/library/openshift_logging_facts.py
+++ b/roles/openshift_logging/library/openshift_logging_facts.py
@@ -288,7 +288,7 @@ class OpenshiftLoggingFacts(OCBaseCommand):
return
for item in role["subjects"]:
comp = self.comp(item["name"])
- if comp is not None and namespace == item["namespace"]:
+ if comp is not None and namespace == item.get("namespace"):
self.add_facts_for(comp, "rolebindings", "logging-elasticsearch-view-role", dict())
# pylint: disable=no-self-use, too-many-return-statements