mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-13 23:06:47 +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 => {
|
||||
additionalProperties => 0,
|
||||
properties => {
|
||||
poolid => { type => 'string', format => 'pve-poolid' },
|
||||
comment => { type => 'string', optional => 1 },
|
||||
poolid => {
|
||||
type => 'string',
|
||||
format => 'pve-poolid'.
|
||||
},
|
||||
comment => {
|
||||
type => 'string',
|
||||
optional => 1,
|
||||
},
|
||||
},
|
||||
},
|
||||
returns => { type => 'null' },
|
||||
@ -330,7 +336,7 @@ __PACKAGE__->register_method ({
|
||||
die "pool '$pool' does not exist\n" if !$pool_config;
|
||||
|
||||
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";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user