bugfix for issue with trying to eval contains with non-string

fixes ansible/ansible-modules-core#3502
This commit is contained in:
Peter Sprygada 2016-05-16 14:54:26 -04:00
parent cd2991c02d
commit 2259b90827

View file

@ -382,7 +382,7 @@ class Conditional(object):
return self.number(value) <= self.value
def contains(self, value):
return self.value in value
return str(self.value) in value