fix whitespaces

Signed-off-by: Philipp Hufnagl <p.hufnagl@proxmox.com>
This commit is contained in:
Philipp Hufnagl 2023-08-01 16:46:04 +02:00 committed by Fabian Grünbichler
parent d4b490009c
commit 58ab77d189
2 changed files with 10 additions and 10 deletions

View File

@ -496,7 +496,7 @@ __PACKAGE__->register_method({
# just parse the json again, it should already be validated # just parse the json again, it should already be validated
my $commands = eval { decode_json($param->{commands}); }; my $commands = eval { decode_json($param->{commands}); };
foreach my $cmd (@$commands) { foreach my $cmd (@$commands) {
eval { eval {
$cmd->{args} //= {}; $cmd->{args} //= {};
@ -654,11 +654,11 @@ __PACKAGE__->register_method({
}, },
ds => { ds => {
description => "The list of datasources you want to display.", description => "The list of datasources you want to display.",
type => 'string', format => 'pve-configid-list', type => 'string', format => 'pve-configid-list',
}, },
cf => { cf => {
description => "The RRD consolidation function", description => "The RRD consolidation function",
type => 'string', type => 'string',
enum => [ 'AVERAGE', 'MAX' ], enum => [ 'AVERAGE', 'MAX' ],
optional => 1, optional => 1,
}, },
@ -699,7 +699,7 @@ __PACKAGE__->register_method({
}, },
cf => { cf => {
description => "The RRD consolidation function", description => "The RRD consolidation function",
type => 'string', type => 'string',
enum => [ 'AVERAGE', 'MAX' ], enum => [ 'AVERAGE', 'MAX' ],
optional => 1, optional => 1,
}, },
@ -1368,7 +1368,7 @@ __PACKAGE__->register_method({
description => "Read server time and time zone settings.", description => "Read server time and time zone settings.",
proxyto => 'node', proxyto => 'node',
parameters => { parameters => {
additionalProperties => 0, additionalProperties => 0,
properties => { properties => {
node => get_standard_option('pve-node'), node => get_standard_option('pve-node'),
}, },
@ -1393,7 +1393,7 @@ __PACKAGE__->register_method({
minimum => 1297163644, minimum => 1297163644,
renderer => 'timestamp_gmt', renderer => 'timestamp_gmt',
}, },
}, },
}, },
code => sub { code => sub {
my ($param) = @_; my ($param) = @_;
@ -2086,14 +2086,14 @@ __PACKAGE__->register_method ({
additionalProperties => 0, additionalProperties => 0,
properties => { properties => {
node => get_standard_option('pve-node'), 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 => { maxworkers => {
description => "Maximal number of parallel migration job. If not set, uses" description => "Maximal number of parallel migration job. If not set, uses"
."'max_workers' from datacenter.cfg. One of both must be set!", ."'max_workers' from datacenter.cfg. One of both must be set!",
optional => 1, optional => 1,
type => 'integer', type => 'integer',
minimum => 1 minimum => 1
}, },
vms => { vms => {
description => "Only consider Guests with these IDs.", description => "Only consider Guests with these IDs.",
type => 'string', format => 'pve-vmid-list', type => 'string', format => 'pve-vmid-list',

View File

@ -215,7 +215,7 @@ Ext.define('PVE.window.DownloadUrlToStorage', {
], ],
initComponent: function() { initComponent: function() {
var me = this; var me = this;
if (!me.nodename) { if (!me.nodename) {
throw "no node name specified"; throw "no node name specified";
@ -224,7 +224,7 @@ Ext.define('PVE.window.DownloadUrlToStorage', {
throw "no storage ID specified"; throw "no storage ID specified";
} }
me.callParent(); me.callParent();
}, },
}); });