mirror of
https://git.proxmox.com/git/pve-container
synced 2025-10-04 00:19:24 +00:00
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:
parent
7c7bec38fe
commit
ddd31720aa
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user