diff options
author | Kenjiro Nakayama <nakayamakenjiro@gmail.com> | 2018-01-09 23:46:37 +0900 |
---|---|---|
committer | Kenjiro Nakayama <nakayamakenjiro@gmail.com> | 2018-01-09 23:46:37 +0900 |
commit | 4300173d0bfb61acedccca0f695be6d691420674 (patch) | |
tree | 6e91cb053b42b6b3fdaf18952ecc74d90f38db20 /roles/openshift_logging | |
parent | e3417ec5af98cc0a2f991073e58e94883433d2f9 (diff) | |
download | openshift-4300173d0bfb61acedccca0f695be6d691420674.tar.gz openshift-4300173d0bfb61acedccca0f695be6d691420674.tar.bz2 openshift-4300173d0bfb61acedccca0f695be6d691420674.tar.xz openshift-4300173d0bfb61acedccca0f695be6d691420674.zip |
Add key check for facts_for_clusterrolebindings
Diffstat (limited to 'roles/openshift_logging')
-rw-r--r-- | roles/openshift_logging/library/openshift_logging_facts.py | 2 |
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... |