]> git.proxmox.com Git - pve-common.git/commitdiff
api dump: ignore proxyto_callback code refs
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 17 Jun 2023 11:52:25 +0000 (13:52 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 17 Jun 2023 11:52:25 +0000 (13:52 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/RESTHandler.pm

index 6433659f373ad2f2052cf193e7d70cbf27cb762d..b99eb15b245e9c60eb5544197e08401158a98452 100644 (file)
@@ -189,7 +189,7 @@ sub api_dump_remove_refs {
        foreach my $k (keys %$tree) {
            if (my $itemclass = ref($tree->{$k})) {
                if ($itemclass eq 'CODE') {
-                   next if $k eq 'completion';
+                   next if $k eq 'completion' || $k eq 'proxyto_callback';
                }
                $res->{$k} = api_dump_remove_refs($tree->{$k});
            } else {