From 62b4656571be6e8671ada295047eac385d330f66 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 20 Oct 2014 16:08:06 -0400 Subject: In configure we do not need to set_config() All we care about in configure is to store the config in the db, so skip setting the config explicitly in the plugin object and go straight to the database. Signed-off-by: Simo Sorce Reviewed-by: Patrick Uiterwijk --- ipsilon/info/infoldap.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ipsilon/info/infoldap.py') diff --git a/ipsilon/info/infoldap.py b/ipsilon/info/infoldap.py index 0b94fac..70d36d5 100755 --- a/ipsilon/info/infoldap.py +++ b/ipsilon/info/infoldap.py @@ -198,8 +198,7 @@ class Installer(InfoProviderInstaller): elif 'ldap_bind_dn_template' in opts: config['user dn template'] = opts['ldap_bind_dn_template'] config['tls'] = 'Demand' - po.set_config(config) - po.save_plugin_config(self.facility) + po.save_plugin_config(self.facility, config) # Replace global config, only one plugin info can be used po.name = 'global' @@ -210,5 +209,4 @@ class Installer(InfoProviderInstaller): order = [] order.append('ldap') globalconf['order'] = ','.join(order) - po.set_config(globalconf) - po.save_plugin_config(self.facility) + po.save_plugin_config(self.facility, globalconf) -- cgit