[pve-devel] [PATCH manager V3 1/2] Indentation cleanup.

Wolfgang Link w.link at proxmox.com
Tue Oct 17 09:40:48 CEST 2017


---
 PVE/API2/Replication.pm | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/PVE/API2/Replication.pm b/PVE/API2/Replication.pm
index f396615d..38449892 100644
--- a/PVE/API2/Replication.pm
+++ b/PVE/API2/Replication.pm
@@ -77,15 +77,15 @@ sub run_jobs {
     my $iteration = $now // time();
 
     my $code = sub {
-       my $start_time = $now // time();
+	my $start_time = $now // time();
 
-       PVE::ReplicationState::purge_old_states();
+	PVE::ReplicationState::purge_old_states();
 
-       while (my $jobcfg = PVE::ReplicationState::get_next_job($iteration, $start_time)) {
-           my $guest_class = $lookup_guest_class->($jobcfg->{vmtype});
-           PVE::Replication::run_replication($guest_class, $jobcfg, $iteration, $start_time, $logfunc, 1, $verbose);
-           $start_time = $now // time();
-       }
+	while (my $jobcfg = PVE::ReplicationState::get_next_job($iteration, $start_time)) {
+	    my $guest_class = $lookup_guest_class->($jobcfg->{vmtype});
+	    PVE::Replication::run_replication($guest_class, $jobcfg, $iteration, $start_time, $logfunc, 1, $verbose);
+	    $start_time = $now // time();
+	}
     };
 
     my $res = PVE::Tools::lock_file($pvesr_lock_path, 60, $code);
-- 
2.11.0




More information about the pve-devel mailing list