diff options
author | Andrew Butcher <abutcher@redhat.com> | 2016-01-21 10:39:38 -0500 |
---|---|---|
committer | Andrew Butcher <abutcher@redhat.com> | 2016-01-21 10:40:19 -0500 |
commit | 92c1cf5ae7db029b8feed23095a0e3df99de0ba2 (patch) | |
tree | b81e84a4b03f43b166c045a144376167baeb530b | |
parent | bdedb63403ea582c4aaa5f56caed302f51744de2 (diff) | |
download | openshift-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.py | 4 |
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 |