api: get interfaces: avoid indentation and vertical alignment

To better match our otherwise used style.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2025-04-07 19:50:13 +02:00
parent 7c7bec38fe
commit ddd31720aa

View File

@ -1157,13 +1157,11 @@ sub get_interfaces {
# TODO: remove on next major release
$obj->{$ip->{family}} = $ip->{local} . "/" . $ip->{prefixlen};
push(
@$list, {
'ip-address-type' => $ip->{family},
'ip-address' => $ip->{local},
'prefix' => $ip->{prefixlen}
}
);
push @$list, {
'ip-address-type' => $ip->{family},
'ip-address' => $ip->{local},
'prefix' => $ip->{prefixlen}
};
}
$obj->{'ip-addresses'} = $list;
$obj->{'hardware-address'} = $interface->{address};