From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 3FEC2905A for ; Tue, 1 Aug 2023 16:46:14 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id DB988F579 for ; Tue, 1 Aug 2023 16:46:13 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Tue, 1 Aug 2023 16:46:12 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id D0F34409B7 for ; Tue, 1 Aug 2023 16:46:11 +0200 (CEST) From: Philipp Hufnagl To: pve-devel@lists.proxmox.com Date: Tue, 1 Aug 2023 16:46:04 +0200 Message-Id: <20230801144604.760331-7-p.hufnagl@proxmox.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230801144604.760331-1-p.hufnagl@proxmox.com> References: <20230801144604.760331-1-p.hufnagl@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.002 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record T_SCC_BODY_TEXT_LINE -0.01 - Subject: [pve-devel] [PATCH manager v4 2/2] fix whitespaces X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Aug 2023 14:46:14 -0000 Signed-off-by: Philipp Hufnagl --- PVE/API2/Nodes.pm | 16 ++++++++-------- www/manager6/window/DownloadUrlToStorage.js | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm index 2bae4e6f..6fa138fb 100644 --- a/PVE/API2/Nodes.pm +++ b/PVE/API2/Nodes.pm @@ -496,7 +496,7 @@ __PACKAGE__->register_method({ # just parse the json again, it should already be validated my $commands = eval { decode_json($param->{commands}); }; - foreach my $cmd (@$commands) { + foreach my $cmd (@$commands) { eval { $cmd->{args} //= {}; @@ -654,11 +654,11 @@ __PACKAGE__->register_method({ }, ds => { description => "The list of datasources you want to display.", - type => 'string', format => 'pve-configid-list', + type => 'string', format => 'pve-configid-list', }, cf => { description => "The RRD consolidation function", - type => 'string', + type => 'string', enum => [ 'AVERAGE', 'MAX' ], optional => 1, }, @@ -699,7 +699,7 @@ __PACKAGE__->register_method({ }, cf => { description => "The RRD consolidation function", - type => 'string', + type => 'string', enum => [ 'AVERAGE', 'MAX' ], optional => 1, }, @@ -1368,7 +1368,7 @@ __PACKAGE__->register_method({ description => "Read server time and time zone settings.", proxyto => 'node', parameters => { - additionalProperties => 0, + additionalProperties => 0, properties => { node => get_standard_option('pve-node'), }, @@ -1393,7 +1393,7 @@ __PACKAGE__->register_method({ minimum => 1297163644, renderer => 'timestamp_gmt', }, - }, + }, }, code => sub { my ($param) = @_; @@ -2105,14 +2105,14 @@ __PACKAGE__->register_method ({ additionalProperties => 0, properties => { node => get_standard_option('pve-node'), - target => get_standard_option('pve-node', { description => "Target node." }), + target => get_standard_option('pve-node', { description => "Target node." }), maxworkers => { description => "Maximal number of parallel migration job. If not set, uses" ."'max_workers' from datacenter.cfg. One of both must be set!", optional => 1, type => 'integer', minimum => 1 - }, + }, vms => { description => "Only consider Guests with these IDs.", type => 'string', format => 'pve-vmid-list', diff --git a/www/manager6/window/DownloadUrlToStorage.js b/www/manager6/window/DownloadUrlToStorage.js index 7a472ce9..559a1c05 100644 --- a/www/manager6/window/DownloadUrlToStorage.js +++ b/www/manager6/window/DownloadUrlToStorage.js @@ -220,7 +220,7 @@ Ext.define('PVE.window.DownloadUrlToStorage', { ], initComponent: function() { - var me = this; + var me = this; if (!me.nodename) { throw "no node name specified"; @@ -241,7 +241,7 @@ Ext.define('PVE.window.DownloadUrlToStorage', { }); } - me.callParent(); + me.callParent(); }, }); -- 2.39.2