diff options
| author | Thomas Lamprecht <t.lamprecht@proxmox.com> | 2024-11-18 14:40:37 +0100 |
|---|---|---|
| committer | Thomas Lamprecht <t.lamprecht@proxmox.com> | 2024-11-18 14:40:37 +0100 |
| commit | cec420f0c87b79ca4c62851282d286f32042315f (patch) | |
| tree | f2581ac3803a222b4bd42320275373e13f832903 | |
| parent | 1869d5e7fa5e0ecf4f1bdc25aea4845335909397 (diff) | |
ipam: code-style/indentation cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
| -rw-r--r-- | src/PVE/Network/SDN/Ipams/PVEPlugin.pm | 8 | ||||
| -rw-r--r-- | 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, + }), }, }; |
