api/config update: indentation and whitespace fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2019-05-15 10:36:01 +02:00
parent 91f42b33a0
commit 37ab64f388

View File

@ -48,7 +48,7 @@ __PACKAGE__->register_method ({
user => 'all',
},
parameters => {
additionalProperties => 0,
additionalProperties => 0,
properties => {
type => {
description => "Only list storage of specific type",
@ -98,7 +98,7 @@ __PACKAGE__->register_method ({
check => ['perm', '/storage/{storage}', ['Datastore.Allocate']],
},
parameters => {
additionalProperties => 0,
additionalProperties => 0,
properties => {
storage => get_standard_option('pve-storage-id'),
},
@ -197,8 +197,7 @@ __PACKAGE__->register_method ({
my $digest = extract_param($param, 'digest');
my $delete = extract_param($param, 'delete');
PVE::Storage::lock_storage_config(
sub {
PVE::Storage::lock_storage_config(sub {
my $cfg = PVE::Storage::config();
@ -228,7 +227,7 @@ __PACKAGE__->register_method ({
PVE::Storage::write_config($cfg);
}, "update storage failed");
}, "update storage failed");
return undef;
}});
@ -243,7 +242,7 @@ __PACKAGE__->register_method ({
check => ['perm', '/storage', ['Datastore.Allocate']],
},
parameters => {
additionalProperties => 0,
additionalProperties => 0,
properties => {
storage => get_standard_option('pve-storage-id', {
completion => \&PVE::Storage::complete_storage,