diff --git a/lib/ansible/module_utils/netcfg.py b/lib/ansible/module_utils/netcfg.py index 68607f525c..20a3d3e681 100644 --- a/lib/ansible/module_utils/netcfg.py +++ b/lib/ansible/module_utils/netcfg.py @@ -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