summaryrefslogtreecommitdiffstats
path: root/filter_plugins
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-08-16 14:59:14 -0400
committerGitHub <noreply@github.com>2016-08-16 14:59:14 -0400
commitf2f81ea3aff7e52716a7fa75b131e008f84cfa90 (patch)
treebe6834cec2f7184222b037dd590f64011a947c55 /filter_plugins
parentbdf12ce1512ec5467cf668b0a7c8553a4dab92d1 (diff)
parent75df5713bc1b1d3cf454a6975e2ed8eea528a8a3 (diff)
downloadopenshift-f2f81ea3aff7e52716a7fa75b131e008f84cfa90.tar.gz
openshift-f2f81ea3aff7e52716a7fa75b131e008f84cfa90.tar.bz2
openshift-f2f81ea3aff7e52716a7fa75b131e008f84cfa90.tar.xz
openshift-f2f81ea3aff7e52716a7fa75b131e008f84cfa90.zip
Merge pull request #2220 from jkhelil/fix_key_error_when_ssh_failing
fixing openshift key error in case of node failure during run (ssh is…
Diffstat (limited to 'filter_plugins')
-rw-r--r--filter_plugins/oo_filters.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/filter_plugins/oo_filters.py b/filter_plugins/oo_filters.py
index 557a684dc..b57bc0afa 100644
--- a/filter_plugins/oo_filters.py
+++ b/filter_plugins/oo_filters.py
@@ -39,7 +39,6 @@ class FilterModule(object):
the value.
If the key isn't present, None is returned.
-
Ex: data = {'a': {'b': {'c': 5}}}
attribute = "a.b.c"
returns 5
@@ -57,6 +56,7 @@ class FilterModule(object):
return ptr
+
@staticmethod
def oo_flatten(data):
""" This filter plugin will flatten a list of lists
@@ -146,6 +146,7 @@ class FilterModule(object):
retval = [FilterModule.get_attr(d, attribute) for d in data]
retval = [val for val in retval if val != None]
+
return retval
@staticmethod