Skip to content

Commit

Permalink
chore: auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Aug 27, 2024
1 parent 31cfeba commit a5fc3cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/module_utils/network/nxos/facts/legacy/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def populate(self):
self.populate_ipv6_interfaces(interfaces)

data = self.run("show lldp neighbors", output="json")
neigh_count = data.get("neigh_count", '0')
neigh_count = data.get("neigh_count", "0")
if data and int(neigh_count) != 0:
if isinstance(data, dict):
self.facts["neighbors"].update(
Expand Down

0 comments on commit a5fc3cc

Please sign in to comment.