bugfix for issue with trying to eval contains with non-string
fixes ansible/ansible-modules-core#3502
This commit is contained in:
parent
8f7c879574
commit
83d0a15588
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue