api/config: fix indentation

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2020-11-11 09:35:53 +01:00
parent 790ca37e69
commit 8ff8e27713

View File

@ -161,9 +161,7 @@ __PACKAGE__->register_method ({
my $plugin = PVE::Storage::Plugin->lookup($type); my $plugin = PVE::Storage::Plugin->lookup($type);
my $opts = $plugin->check_config($storeid, $param, 1, 1); my $opts = $plugin->check_config($storeid, $param, 1, 1);
PVE::Storage::lock_storage_config( PVE::Storage::lock_storage_config(sub {
sub {
my $cfg = PVE::Storage::config(); my $cfg = PVE::Storage::config();
if (my $scfg = PVE::Storage::storage_config($cfg, $storeid, 1)) { if (my $scfg = PVE::Storage::storage_config($cfg, $storeid, 1)) {
@ -217,7 +215,6 @@ __PACKAGE__->register_method ({
} }
PVE::Storage::lock_storage_config(sub { PVE::Storage::lock_storage_config(sub {
my $cfg = PVE::Storage::config(); my $cfg = PVE::Storage::config();
PVE::SectionConfig::assert_if_modified($cfg, $digest); PVE::SectionConfig::assert_if_modified($cfg, $digest);
@ -279,9 +276,7 @@ __PACKAGE__->register_method ({
my $storeid = extract_param($param, 'storage'); my $storeid = extract_param($param, 'storage');
PVE::Storage::lock_storage_config( PVE::Storage::lock_storage_config(sub {
sub {
my $cfg = PVE::Storage::config(); my $cfg = PVE::Storage::config();
my $scfg = PVE::Storage::storage_config($cfg, $storeid); my $scfg = PVE::Storage::storage_config($cfg, $storeid);