summaryrefslogtreecommitdiffstats
path: root/src/sbin/bcfg2-server
diff options
context:
space:
mode:
Diffstat (limited to 'src/sbin/bcfg2-server')
-rwxr-xr-xsrc/sbin/bcfg2-server9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/sbin/bcfg2-server b/src/sbin/bcfg2-server
index 08e3f3d87..8fe1b82ff 100755
--- a/src/sbin/bcfg2-server
+++ b/src/sbin/bcfg2-server
@@ -192,14 +192,7 @@ class Bcfg2Serv(Bcfg2.Component.Component):
def Bcfg2GetDecisionList(self, address, mode):
client = self.Core.metadata.resolve_client(address)
meta = self.Core.metadata.get_metadata(client)
- result = []
- for plugin in self.Core.plugins.values():
- try:
- if isinstance(plugin, Bcfg2.Server.Plugin.DecisionPlugin):
- result += plugin.GetDecision(meta, mode)
- except:
- self.logger.error("Plugin: %s failed to generate decision list" % plugin.__name__)
- return []
+ return self.Core.GetDecisions(meta, mode)
if __name__ == '__main__':