Fix EntityCollection stacktrace (#27217)

pull/27219/head
Ganesh Nalawade 7 years ago committed by GitHub
parent edccfd5908
commit ad4ecf2a64

@ -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]

Loading…
Cancel
Save