diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-11-10 12:36:26 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-11-10 11:59:50 -0500 |
commit | 535b4fc2c320c2fc5075947c105d830ce59d2958 (patch) | |
tree | 3d6df546705da3dff1829e07acdfb07734ea4acf | |
parent | 9979643a122fcc1ea9ccfddf666b5b1036486f93 (diff) | |
download | sssd-535b4fc2c320c2fc5075947c105d830ce59d2958.tar.gz sssd-535b4fc2c320c2fc5075947c105d830ce59d2958.tar.bz2 sssd-535b4fc2c320c2fc5075947c105d830ce59d2958.zip |
configAPI: Fix removing in old domain when saving a new domain
-rw-r--r-- | src/config/SSSDConfig.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config/SSSDConfig.py b/src/config/SSSDConfig.py index 87b1d634..6858ce49 100644 --- a/src/config/SSSDConfig.py +++ b/src/config/SSSDConfig.py @@ -1760,7 +1760,7 @@ class SSSDConfig(SSSDChangeConf): domain.oldname = None; sectionname = 'domain/%s' % name - section_subtree = self.findOpts(self.opts, 'section', sectionname) + (no, section_subtree) = self.findOpts(self.opts, 'section', sectionname) if name not in self.list_domains(): self.add_section(sectionname, []); @@ -1768,7 +1768,7 @@ class SSSDConfig(SSSDChangeConf): for option in self.options(sectionname): if option['type'] == 'option': if option['name'] not in domain.get_all_options(): - self.delete_option_subtree(section_subtree, 'option', option['name'], True) + self.delete_option_subtree(section_subtree['values'], 'option', option['name'], True) for option,value in domain.get_all_options().items(): if (type(value) == list): |