mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
bugfix for issue with trying to eval contains with non-string
fixes ansible/ansible-modules-core#3502
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user