api/config update: indentation and whitespace fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user