Skip to content

Commit

Permalink
Fix pylint unbound var error
Browse files Browse the repository at this point in the history
  • Loading branch information
roverflow committed Aug 8, 2024
1 parent eacf047 commit 2bf9241
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/modules/nxos_ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ def get_ping_results(command, module):
cmd = {"command": command, "output": "text"}
ping = run_commands(module, [cmd])[0]

summary, rtt, ping_pass = None, None, None

if not ping:
module.fail_json(
msg="An unexpected error occurred. Check all params.",
Expand Down

0 comments on commit 2bf9241

Please sign in to comment.