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 # TODO: remove on next major release
$obj->{$ip->{family}} = $ip->{local} . "/" . $ip->{prefixlen}; $obj->{$ip->{family}} = $ip->{local} . "/" . $ip->{prefixlen};
push( push @$list, {
@$list, { 'ip-address-type' => $ip->{family},
'ip-address-type' => $ip->{family}, 'ip-address' => $ip->{local},
'ip-address' => $ip->{local}, 'prefix' => $ip->{prefixlen}
'prefix' => $ip->{prefixlen} };
}
);
} }
$obj->{'ip-addresses'} = $list; $obj->{'ip-addresses'} = $list;
$obj->{'hardware-address'} = $interface->{address}; $obj->{'hardware-address'} = $interface->{address};