From 274a0e239477d5d18262fb6dc5b10e1fde923c6d Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Sun, 9 May 2021 18:58:42 +0200 Subject: [PATCH] api: pools: whitespace, indentation and code cleanups Signed-off-by: Thomas Lamprecht --- PVE/API2/Pool.pm | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/PVE/API2/Pool.pm b/PVE/API2/Pool.pm index 3a7e5927..96cf5959 100644 --- a/PVE/API2/Pool.pm +++ b/PVE/API2/Pool.pm @@ -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"; }