summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenjiro Nakayama <nakayamakenjiro@gmail.com>2018-01-09 23:46:37 +0900
committerKenjiro Nakayama <nakayamakenjiro@gmail.com>2018-01-09 23:46:37 +0900
commit4300173d0bfb61acedccca0f695be6d691420674 (patch)
tree6e91cb053b42b6b3fdaf18952ecc74d90f38db20
parente3417ec5af98cc0a2f991073e58e94883433d2f9 (diff)
downloadopenshift-4300173d0bfb61acedccca0f695be6d691420674.tar.gz
openshift-4300173d0bfb61acedccca0f695be6d691420674.tar.bz2
openshift-4300173d0bfb61acedccca0f695be6d691420674.tar.xz
openshift-4300173d0bfb61acedccca0f695be6d691420674.zip
Add key check for facts_for_clusterrolebindings
-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 f810ae39c..37ffb0204 100644
--- a/roles/openshift_logging/library/openshift_logging_facts.py
+++ b/roles/openshift_logging/library/openshift_logging_facts.py
@@ -276,7 +276,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, "clusterrolebindings", "cluster-readers", dict())
# this needs to end up nested under the service account...