Fix EntityCollection stacktrace (#27217)

This commit is contained in:
Ganesh Nalawade 2017-07-24 09:57:52 +05:30 committed by GitHub
parent edccfd5908
commit ad4ecf2a64

View file

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