summaryrefslogtreecommitdiffstats
path: root/ipsilon/info/infoldap.py
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-10-20 16:08:06 -0400
committerPatrick Uiterwijk <puiterwijk@redhat.com>2014-11-12 23:46:57 +0100
commit62b4656571be6e8671ada295047eac385d330f66 (patch)
tree3516bb0f3e4c10b250cabdc9f0990b01ac45b286 /ipsilon/info/infoldap.py
parent5e0b9747121eab67c5a3ee3bb42a677e35da7fd6 (diff)
downloadipsilon-62b4656571be6e8671ada295047eac385d330f66.tar.gz
ipsilon-62b4656571be6e8671ada295047eac385d330f66.tar.xz
ipsilon-62b4656571be6e8671ada295047eac385d330f66.zip
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 <simo@redhat.com> Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'ipsilon/info/infoldap.py')
-rwxr-xr-xipsilon/info/infoldap.py6
1 files changed, 2 insertions, 4 deletions
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)