mirror of
https://git.proxmox.com/git/pve-container
synced 2025-10-04 08:12:51 +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
|
# 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};
|
||||||
|
Loading…
Reference in New Issue
Block a user