diff options
author | Scott Dodson <sdodson@redhat.com> | 2016-07-19 16:11:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-19 16:11:02 -0400 |
commit | 3c8e14992fe764bd9381f4758cb011a18b62b77b (patch) | |
tree | 78fbec4f403b751518d8b4a1b30a6f1fe889ab99 | |
parent | 4b6d7cfad66e2b5fd3bd1ecb340604b3bda40363 (diff) | |
parent | 5efe55d568ebc6fa2c4943779e5f4c0a809e86a5 (diff) | |
download | openshift-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.py | 2 |
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") |