X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=blobdiff_plain;f=src%2FPVE%2FAPI2%2FFirewall%2FHost.pm;fp=src%2FPVE%2FAPI2%2FFirewall%2FHost.pm;h=680bc5820a17ff08f3ae0c14a85c73861d73d86e;hp=0ebdcceb494baa4688254b6abf82c883ade25a4e;hb=5d38d64fa42881c571db1566cfcb350a3da31269;hpb=649e4d579b2b4d30fe6a17b4234cf440181cb5b6 diff --git a/src/PVE/API2/Firewall/Host.pm b/src/PVE/API2/Firewall/Host.pm index 0ebdcce..680bc58 100644 --- a/src/PVE/API2/Firewall/Host.pm +++ b/src/PVE/API2/Firewall/Host.pm @@ -68,13 +68,7 @@ __PACKAGE__->register_method({ my $hostfw_conf = PVE::Firewall::load_hostfw_conf(); - my $options = $hostfw_conf->{options} || {}; - - my $digest = $hostfw_conf->{digest}; - - $options->{digest} = $digest; - - return $options; + return PVE::Firewall::copy_opject_with_digest($hostfw_conf->{options}); }}); 1;