Skip to content

Commit

Permalink
Fixing a minor issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rameshraghupathy committed Oct 23, 2024
1 parent 5c85cf4 commit 1b3fabb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion show/reboot_cause.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def fetch_data_from_db(module_name, fetch_history=False):
append = True
r.append(entry['device'] if 'device' in entry else "SWITCH")

name = tk.replace(prefix, "")
name = tk.split('|')[-1]
if "|" in name:
name = name[:name.rindex('|')] + ''
r.append(name)
Expand Down

0 comments on commit 1b3fabb

Please sign in to comment.