diff --git a/netfuse/main.py b/netfuse/main.py index 38be469..fad7a34 100644 --- a/netfuse/main.py +++ b/netfuse/main.py @@ -94,7 +94,11 @@ def dump( host_entries += "\n" + "*" * 83 + "\n\n" for device in module.attached_devices(): if device.ipv4_address: - host_entries += f"{device.ipv4_address}\t{device.name}{suffix}\n" + host_entries += f"{device.ipv4_address}\t{device.name}" + if suffix: + host_entries += f"{suffix}\n" + else: + host_entries += "\n" else: LOGGER.debug( "%s [%s] does not have an IP address", device.name, device.mac_address