[pve-devel] [PATCH v3 container 1/2] whitespace cleanup
Tim Marx
t.marx at proxmox.com
Thu Sep 12 12:56:19 CEST 2019
---
src/PVE/API2/LXC.pm | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm
index 9ddaf58..faec445 100644
--- a/src/PVE/API2/LXC.pm
+++ b/src/PVE/API2/LXC.pm
@@ -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