summaryrefslogtreecommitdiff
path: root/src/config/SSSDConfig
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-08-03 12:12:17 -0400
committerJakub Hrozek <jhrozek@redhat.com>2012-08-05 19:20:32 +0200
commitbf960d6a15feffff26dff782a876cb0b6e7dd935 (patch)
tree5b299d3cb6455421610da9030232f288726eac73 /src/config/SSSDConfig
parent68a962920bb277475047cebf3f02f77136e83156 (diff)
downloadsssd-bf960d6a15feffff26dff782a876cb0b6e7dd935.tar.gz
sssd-bf960d6a15feffff26dff782a876cb0b6e7dd935.tar.bz2
sssd-bf960d6a15feffff26dff782a876cb0b6e7dd935.zip
SSSDConfig: Fix nonfunctional SSSDDomain.remove_provider()
Also adds a regression test to the unit test suite. https://fedorahosted.org/sssd/ticket/1388
Diffstat (limited to 'src/config/SSSDConfig')
-rw-r--r--src/config/SSSDConfig/__init__.py.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config/SSSDConfig/__init__.py.in b/src/config/SSSDConfig/__init__.py.in
index 32613543..b90a8e10 100644
--- a/src/config/SSSDConfig/__init__.py.in
+++ b/src/config/SSSDConfig/__init__.py.in
@@ -1254,6 +1254,11 @@ class SSSDDomain(SSSDConfigObject):
if self.options.has_key(option):
del self.options[option]
+ # Remove this provider from the option list
+ option = '%s_provider' % provider_type
+ if self.options.has_key(option):
+ del self.options[option]
+
self.providers.remove((provider, provider_type))
class SSSDConfig(SSSDChangeConf):