mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 13:36:37 +00:00
api: pools: whitespace, indentation and code cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
926ce2b8d9
commit
274a0e2394
@ -72,8 +72,14 @@ __PACKAGE__->register_method ({
|
|||||||
parameters => {
|
parameters => {
|
||||||
additionalProperties => 0,
|
additionalProperties => 0,
|
||||||
properties => {
|
properties => {
|
||||||
poolid => { type => 'string', format => 'pve-poolid' },
|
poolid => {
|
||||||
comment => { type => 'string', optional => 1 },
|
type => 'string',
|
||||||
|
format => 'pve-poolid'.
|
||||||
|
},
|
||||||
|
comment => {
|
||||||
|
type => 'string',
|
||||||
|
optional => 1,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
returns => { type => 'null' },
|
returns => { type => 'null' },
|
||||||
@ -330,7 +336,7 @@ __PACKAGE__->register_method ({
|
|||||||
die "pool '$pool' does not exist\n" if !$pool_config;
|
die "pool '$pool' does not exist\n" if !$pool_config;
|
||||||
|
|
||||||
for my $vmid (sort keys %{$pool_config->{vms}}) {
|
for my $vmid (sort keys %{$pool_config->{vms}}) {
|
||||||
next if !$idlist->{$vmid};
|
next if !$idlist->{$vmid}; # ignore destroyed guests
|
||||||
die "pool '$pool' is not empty (contains VM $vmid)\n";
|
die "pool '$pool' is not empty (contains VM $vmid)\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user