[pve-devel] [PATCH manager v2 2/5] node task list: set the defaults better

Dominik Csapak d.csapak at proxmox.com
Fri Jun 29 10:20:20 CEST 2018


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 PVE/API2/Tasks.pm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/PVE/API2/Tasks.pm b/PVE/API2/Tasks.pm
index e5ff59af..ec36f4b6 100644
--- a/PVE/API2/Tasks.pm
+++ b/PVE/API2/Tasks.pm
@@ -90,10 +90,10 @@ __PACKAGE__->register_method({
 	my $filename = "/var/log/pve/tasks/index";
 
 	my $node = $param->{node};
-	my $start = $param->{start} || 0;
-	my $limit = $param->{limit} || 50;
+	my $start = $param->{start} // 0;
+	my $limit = $param->{limit} // 50;
 	my $userfilter = $param->{userfilter};
-	my $errors = $param->{errors};
+	my $errors = $param->{errors} // 0;
 
 	my $count = 0;
 	my $line;
-- 
2.11.0




More information about the pve-devel mailing list