[pve-devel] [PATCH container 1/2] Whitespace cleanup

Aaron Lauterer a.lauterer at proxmox.com
Thu Jan 16 14:00:31 CET 2020


Signed-off-by: Aaron Lauterer <a.lauterer at proxmox.com>
---
 src/PVE/VZDump/LXC.pm | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm
index 2a6449c..0260184 100644
--- a/src/PVE/VZDump/LXC.pm
+++ b/src/PVE/VZDump/LXC.pm
@@ -56,7 +56,7 @@ my $rsync_vm = sub {
 
 sub new {
     my ($class, $vzdump) = @_;
-    
+
     PVE::VZDump::check_bin('lxc-stop');
     PVE::VZDump::check_bin('lxc-start');
     PVE::VZDump::check_bin('lxc-freeze');
@@ -66,7 +66,7 @@ sub new {
 
     $self->{vzdump} = $vzdump;
     $self->{storecfg} = PVE::Storage::config();
-    
+
     $self->{vmlist} = PVE::LXC::config_list();
 
     return $self;
@@ -80,8 +80,8 @@ sub vm_status {
     my ($self, $vmid) = @_;
 
     my $running = PVE::LXC::check_running($vmid) ? 1 : 0;
-   
-    return wantarray ? ($running, $running ? 'running' : 'stopped') : $running; 
+
+    return wantarray ? ($running, $running ? 'running' : 'stopped') : $running;
 }
 
 my $check_mountpoint_empty = sub {
@@ -117,7 +117,6 @@ sub prepare {
     $task->{rootuid} = $rootuid;
     $task->{rootgid} = $rootgid;
 
-
     my $volids = $task->{volids} = [];
     PVE::LXC::Config->foreach_mountpoint($conf, sub {
 	my ($name, $data) = @_;
@@ -207,7 +206,7 @@ sub snapshot {
 	$self->lock_vm($vmid);
     });
     $task->{cleanup}->{remove_snapshot} = 1;
-    
+
     # reload config
     my $conf = $self->{vmlist}->{$vmid} = PVE::LXC::Config->load_config($vmid);
     die "unable to read vzdump snapshot config - internal error"
@@ -340,7 +339,7 @@ sub archive {
                @PVE::Storage::Plugin::COMMON_TAR_FLAGS,
                '--one-file-system', '--warning=no-file-ignored'];
 
-    # note: --remove-files does not work because we do not 
+    # note: --remove-files does not work because we do not
     # backup all files (filters). tar complains:
     # Cannot rmdir: Directory not empty
     # we disable this optimization for now
-- 
2.20.1




More information about the pve-devel mailing list