nxos_facts module issue with interfaces

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

Hi,

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

Thanks,

Thanks, Trishna. I’ll watch that one.