# nxos\_facts module issue with interfaces

**URL:** <https://forum.ansible.com/t/nxos-facts-module-issue-with-interfaces/27337>\
**Category:** Ansible Developer\
**Created:** [April 20, 2018, 2:36pm UTC](https://forum.ansible.com/t/nxos-facts-module-issue-with-interfaces/27337 "2018-04-20T14:36:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rick\_Williams](https://avatars.discourse-cdn.com/v4/letter/r/f17d59/32.png) [@Rick\_Williams](https://forum.ansible.com/u/Rick_Williams)\
**Post date:** [April 20, 2018, 2:36pm UTC](https://forum.ansible.com/t/nxos-facts-module-issue-with-interfaces/27337/1 "2018-04-20T14:36:49Z")

</div>

Hi all,

I’m just getting started with this, so please bear with me until I find my way around.

Is this the place to ask about specific module issues?

For example, I’m trying to use nxos\_facts network module but getting an exception. For some odd reason, this has worked once. But most times returns:

“exception”: “Traceback (most recent call last):\n File "/tmp/ansible\_J8ozrl/ansible\_module\_nxos\_facts.py", line 596, in \n main()\n File "/tmp/ansible\_J8ozrl/ansible\_module\_nxos\_facts.py", line 579, in main\n inst.populate()\n File "/tmp/ansible\_J8ozrl/ansible\_module\_nxos\_facts.py", line 314, in populate\n self.facts[‘interfaces’] = self.populate\_interfaces(data)\n File "/tmp/ansible\_J8ozrl/ansible\_module\_nxos\_facts.py", line 330, in populate\_interfaces\n for item in data[‘TABLE\_interface’][‘ROW\_interface’]:\nTypeError: string indices must be integers\n”,

- hosts: edc-sf-n9k-svc-g3  
gather\_facts: no

tasks:

- name: Ping device  
ping:
- name: Get nexus facts  
nxos\_facts:  
gather\_subset:

# - hardware

- interfaces  
register: factResult
- name: NexusFactsResult  
debug:  
var: factResult

I appreciate and direction anyone can provide toward a resolution.

Regards,

Rick

---

<div class="post-metadata">

**Author:** ![trishna](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/trishna/32/963_2.png) [@trishna](https://forum.ansible.com/u/trishna)\
**Post date:** [April 23, 2018, 11:58am UTC](https://forum.ansible.com/t/nxos-facts-module-issue-with-interfaces/27337/2 "2018-04-23T11:58:32Z")

</div>

Hi,

We have similar issue opened [https://github.com/ansible/ansible/issues/38669](https://github.com/ansible/ansible/issues/38669). The fix is currently tracked there.

Thanks,

---

<div class="post-metadata">

**Author:** ![Rick\_Williams](https://avatars.discourse-cdn.com/v4/letter/r/f17d59/32.png) [@Rick\_Williams](https://forum.ansible.com/u/Rick_Williams)\
**Post date:** [April 23, 2018, 1:16pm UTC](https://forum.ansible.com/t/nxos-facts-module-issue-with-interfaces/27337/3 "2018-04-23T13:16:10Z")

</div>

Thanks, Trishna. I’ll watch that one.
