diff --git a/lib/ansible/module_common.py b/lib/ansible/module_common.py index b7e750f61b4..4ed02f732a3 100644 --- a/lib/ansible/module_common.py +++ b/lib/ansible/module_common.py @@ -481,7 +481,7 @@ class AnsibleModule(object): if spec is None: return for check in spec: - counts = [ self.count_terms([field]) for field in check ] + counts = [ self._count_terms([field]) for field in check ] non_zero = [ c for c in counts if c > 0 ] if len(non_zero) > 0: if 0 in counts: