summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2016-01-21 10:39:38 -0500
committerAndrew Butcher <abutcher@redhat.com>2016-01-21 10:40:19 -0500
commit92c1cf5ae7db029b8feed23095a0e3df99de0ba2 (patch)
treeb81e84a4b03f43b166c045a144376167baeb530b
parentbdedb63403ea582c4aaa5f56caed302f51744de2 (diff)
downloadopenshift-92c1cf5ae7db029b8feed23095a0e3df99de0ba2.tar.gz
openshift-92c1cf5ae7db029b8feed23095a0e3df99de0ba2.tar.bz2
openshift-92c1cf5ae7db029b8feed23095a0e3df99de0ba2.tar.xz
openshift-92c1cf5ae7db029b8feed23095a0e3df99de0ba2.zip
Test validate_pcs_cluster input is basestring instead of str.
-rw-r--r--filter_plugins/openshift_master.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/filter_plugins/openshift_master.py b/filter_plugins/openshift_master.py
index 7ababc51a..35a881a85 100644
--- a/filter_plugins/openshift_master.py
+++ b/filter_plugins/openshift_master.py
@@ -478,8 +478,8 @@ class FilterModule(object):
'master3.example.com']
returns True
'''
- if not issubclass(type(data), str):
- raise errors.AnsibleFilterError("|failed expects data is a string")
+ if not issubclass(type(data), basestring):
+ raise errors.AnsibleFilterError("|failed expects data is a string or unicode")
if not issubclass(type(masters), list):
raise errors.AnsibleFilterError("|failed expects masters is a list")
valid = True