From cec420f0c87b79ca4c62851282d286f32042315f Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 18 Nov 2024 14:40:37 +0100 Subject: [PATCH] ipam: code-style/indentation cleanups Signed-off-by: Thomas Lamprecht --- src/PVE/Network/SDN/Ipams/PVEPlugin.pm | 8 +++++--- src/PVE/Network/SDN/Ipams/Plugin.pm | 13 ++++++++----- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/PVE/Network/SDN/Ipams/PVEPlugin.pm b/src/PVE/Network/SDN/Ipams/PVEPlugin.pm index 651acfb..f274b02 100644 --- a/src/PVE/Network/SDN/Ipams/PVEPlugin.pm +++ b/src/PVE/Network/SDN/Ipams/PVEPlugin.pm @@ -16,9 +16,11 @@ use base('PVE::Network::SDN::Ipams::Plugin'); my $ipamdb_file = "priv/ipam.db"; -PVE::Cluster::cfs_register_file($ipamdb_file, - sub { PVE::Network::SDN::Ipams::PVEPlugin->parse_config(@_); }, - sub { PVE::Network::SDN::Ipams::PVEPlugin->write_config(@_); }); +PVE::Cluster::cfs_register_file( + $ipamdb_file, + sub { PVE::Network::SDN::Ipams::PVEPlugin->parse_config(@_); }, + sub { PVE::Network::SDN::Ipams::PVEPlugin->write_config(@_); }, +); sub type { return 'pve'; diff --git a/src/PVE/Network/SDN/Ipams/Plugin.pm b/src/PVE/Network/SDN/Ipams/Plugin.pm index 05d1416..8ab405e 100644 --- a/src/PVE/Network/SDN/Ipams/Plugin.pm +++ b/src/PVE/Network/SDN/Ipams/Plugin.pm @@ -14,9 +14,11 @@ use Data::Dumper; use PVE::JSONSchema qw(get_standard_option); use base qw(PVE::SectionConfig); -PVE::Cluster::cfs_register_file('sdn/ipams.cfg', - sub { __PACKAGE__->parse_config(@_); }, - sub { __PACKAGE__->write_config(@_); }); +PVE::Cluster::cfs_register_file( + 'sdn/ipams.cfg', + sub { __PACKAGE__->parse_config(@_); }, + sub { __PACKAGE__->write_config(@_); }, + ); PVE::JSONSchema::register_standard_option('pve-sdn-ipam-id', { description => "The SDN ipam object identifier.", @@ -42,8 +44,9 @@ my $defaultData = { type => 'string', format => 'pve-configid', type => 'string', }, - ipam => get_standard_option('pve-sdn-ipam-id', - { completion => \&PVE::Network::SDN::Ipams::complete_sdn_ipam }), + ipam => get_standard_option('pve-sdn-ipam-id', { + completion => \&PVE::Network::SDN::Ipams::complete_sdn_ipam, + }), }, }; -- 2.39.5