]> git.proxmox.com Git - pmg-api.git/commitdiff
PMG/CLI/pmgcm.pm: pass undefined $rulecache to rewrite_config()
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 28 Apr 2017 05:14:24 +0000 (07:14 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 28 Apr 2017 05:14:24 +0000 (07:14 +0200)
There is no need to call $rewrite_config_whitelist->() in
that case.

PMG/CLI/pmgcm.pm

index 0100f22cdd4c627750368ecd1c4ad5210358b9bd..7d4e0b33a91407d459f3607daf029983f38063b1 100644 (file)
@@ -218,10 +218,8 @@ __PACKAGE__->register_method({
        PMG::Cluster::sync_config_from_master($master_name, $master_ip);
 
        my $cfg = PMG::Config->new();
-       my $ruledb = PMG::RuleDB->new();
-       my $rulecache = PMG::RuleCache->new($ruledb);
 
-       $cfg->rewrite_config($rulecache, 1);
+       $cfg->rewrite_config(undef, 1);
 
        return undef;
     }});