summaryrefslogtreecommitdiffstats
path: root/ipsilon/providers
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/providers
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/providers')
-rwxr-xr-xipsilon/providers/openidp.py3
-rwxr-xr-xipsilon/providers/saml2idp.py3
2 files changed, 2 insertions, 4 deletions
diff --git a/ipsilon/providers/openidp.py b/ipsilon/providers/openidp.py
index a3e1b63..5abdcad 100755
--- a/ipsilon/providers/openidp.py
+++ b/ipsilon/providers/openidp.py
@@ -148,5 +148,4 @@ class Installer(object):
config = {'endpoint url': url,
'identity_url_template': '%sid/%%(username)s' % url,
'enabled': '1'}
- po.set_config(config)
- po.save_plugin_config(FACILITY)
+ po.save_plugin_config(FACILITY, config)
diff --git a/ipsilon/providers/saml2idp.py b/ipsilon/providers/saml2idp.py
index 7508760..cb2c4a2 100755
--- a/ipsilon/providers/saml2idp.py
+++ b/ipsilon/providers/saml2idp.py
@@ -307,8 +307,7 @@ class Installer(object):
'idp certificate file': cert.cert,
'idp key file': cert.key,
'enabled': '1'}
- po.set_config(config)
- po.save_plugin_config(FACILITY)
+ po.save_plugin_config(FACILITY, config)
# Fixup permissions so only the ipsilon user can read these files
files.fix_user_dirs(path, opts['system_user'])