From ad4ecf2a64918d6765f920b3bc83547ee4d893e6 Mon Sep 17 00:00:00 2001 From: Ganesh Nalawade Date: Mon, 24 Jul 2017 09:57:52 +0530 Subject: [PATCH] Fix EntityCollection stacktrace (#27217) --- lib/ansible/module_utils/network_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/network_common.py b/lib/ansible/module_utils/network_common.py index 485fa947f48..af3b6345a67 100644 --- a/lib/ansible/module_utils/network_common.py +++ b/lib/ansible/module_utils/network_common.py @@ -173,7 +173,7 @@ class EntityCollection(Entity): iterable = [super(EntityCollection, self).__call__(self._module.params, strict)] if not isinstance(iterable, (list, tuple)): - module.fail_json(msg='value must be an iterable') + self._module.fail_json(msg='value must be an iterable') return [(super(EntityCollection, self).__call__(i, strict)) for i in iterable]