# Weird ec2\_elb\_facts error

**URL:** <https://forum.ansible.com/t/weird-ec2-elb-facts-error/23159>\
**Category:** Ansible Project\
**Created:** [December 2, 2016, 1:28am UTC](https://forum.ansible.com/t/weird-ec2-elb-facts-error/23159 "2016-12-02T01:28:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guy\_Knights](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Post date:** [December 2, 2016, 1:28am UTC](https://forum.ansible.com/t/weird-ec2-elb-facts-error/23159/1 "2016-12-02T01:28:00Z")

</div>

I’m running into a very odd problem with an ansible playbook that I’m running from Jenkins. The playbook executes the ec2\_elb\_facts module (without the names parameter). When it runs from my jenkins pipeline job, I get the following error:

```auto
TypeError: argument of type 'NoneType' is not iterable

```

```auto

```

```auto
The exact same playbook command (ie. copied and pasted from the jenkinsfile script) on the command line of the same jenkins server, and it worked fine.

```

```auto

```

```auto
Has anyone else experienced this issue? Any idea what the problem might be?

```

```auto

```

```auto
Thanks,

```

```auto
Guy

```

---

<div class="post-metadata">

**Author:** ![james4](https://avatars.discourse-cdn.com/v4/letter/j/9f8e36/32.png) [@james4](https://forum.ansible.com/u/james4)\
**Post date:** [December 3, 2016, 7:57am UTC](https://forum.ansible.com/t/weird-ec2-elb-facts-error/23159/2 "2016-12-03T07:57:41Z")

</div>

Whats the full trace?
