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