summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-07-19 16:11:02 -0400
committerGitHub <noreply@github.com>2016-07-19 16:11:02 -0400
commit3c8e14992fe764bd9381f4758cb011a18b62b77b (patch)
tree78fbec4f403b751518d8b4a1b30a6f1fe889ab99
parent4b6d7cfad66e2b5fd3bd1ecb340604b3bda40363 (diff)
parent5efe55d568ebc6fa2c4943779e5f4c0a809e86a5 (diff)
downloadopenshift-3c8e14992fe764bd9381f4758cb011a18b62b77b.tar.gz
openshift-3c8e14992fe764bd9381f4758cb011a18b62b77b.tar.bz2
openshift-3c8e14992fe764bd9381f4758cb011a18b62b77b.tar.xz
openshift-3c8e14992fe764bd9381f4758cb011a18b62b77b.zip
Merge pull request #2178 from abutcher/nfs-group-check
Test for oo_nfs_to_config in groups when determining storage host
-rw-r--r--filter_plugins/oo_filters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter_plugins/oo_filters.py b/filter_plugins/oo_filters.py
index d706d0304..ec00a1646 100644
--- a/filter_plugins/oo_filters.py
+++ b/filter_plugins/oo_filters.py
@@ -660,7 +660,7 @@ class FilterModule(object):
if kind == 'nfs':
host = params['host']
if host == None:
- if len(groups['oo_nfs_to_config']) > 0:
+ if 'oo_nfs_to_config' in groups and len(groups['oo_nfs_to_config']) > 0:
host = groups['oo_nfs_to_config'][0]
else:
raise errors.AnsibleFilterError("|failed no storage host detected")