Skip to content

Commit

Permalink
Avoid suffix being None value
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user committed Aug 17, 2024
1 parent fa48c6d commit 4e494a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions netfuse/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def dump(
host_entries += "\n" + "*" * 83 + "\n"
host_entries += WARNING1 + "\n" + WARNING2
host_entries += "\n" + "*" * 83 + "\n\n"
suffix = suffix or ""
for device in module.attached_devices():
if device.ipv4_address:
host_entries += f"{device.ipv4_address}\t{device.name}{suffix}\n"
Expand Down

0 comments on commit 4e494a1

Please sign in to comment.