]> git.proxmox.com Git - pve-firewall.git/blobdiff - src/PVE/API2/Firewall/Host.pm
improve concurrent update handling
[pve-firewall.git] / src / PVE / API2 / Firewall / Host.pm
index 0ebdcceb494baa4688254b6abf82c883ade25a4e..680bc5820a17ff08f3ae0c14a85c73861d73d86e 100644 (file)
@@ -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;