--- src/PVE/API2/LXC.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm index 6ddff9c..faec445 100644 --- a/src/PVE/API2/LXC.pm +++ b/src/PVE/API2/LXC.pm @@ -35,7 +35,7 @@ BEGIN { __PACKAGE__->register_method ({ subclass => "PVE::API2::LXC::Config", - path => '{vmid}/config', + path => '{vmid}/config', }); __PACKAGE__->register_method ({ @@ -212,7 +212,7 @@ __PACKAGE__->register_method({ if ($restore) { # fixme: limit allowed parameters } - + my $force = extract_param($param, 'force'); if (!($same_container_exists && $restore && $force)) { @@ -257,9 +257,9 @@ __PACKAGE__->register_method({ my $archive; if ($ostemplate eq '-') { - die "pipe requires cli environment\n" - if $rpcenv->{type} ne 'cli'; - die "pipe can only be used with restore tasks\n" + die "pipe requires cli environment\n" + if $rpcenv->{type} ne 'cli'; + die "pipe can only be used with restore tasks\n" if !$restore; $archive = '-'; die "restore from pipe requires rootfs parameter\n" if !defined($param->{rootfs}); @@ -675,7 +675,7 @@ __PACKAGE__->register_method({ }; my $realcmd = sub { PVE::LXC::Config->lock_config($vmid, $code); }; - + return $rpcenv->fork_worker('vzdestroy', $vmid, $authuser, $realcmd); }}); -- 2.20.1 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel