diff --git a/pyinfra/facts/hardware.py b/pyinfra/facts/hardware.py index e6fc58973..9a26902bb 100644 --- a/pyinfra/facts/hardware.py +++ b/pyinfra/facts/hardware.py @@ -251,10 +251,8 @@ def mask(value): "address": address, "mask_bits": mask_bits, "netmask": netmask, - } - | {"broadcast": broadcast} - if broadcast - else {} + "broadcast": broadcast, + }, ) device_info["ipv4"] = ipv4_info[0] if len(ipv4_matches) > 1: