[pve-devel] [PATCH v2 container 1/2] whitespace cleanup
Tim Marx
t.marx at proxmox.com
Mon Sep 9 12:39:49 CEST 2019
---
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
More information about the pve-devel
mailing list