diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-11-10 12:36:26 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-11-10 12:00:15 -0500 |
commit | 6125149ebe8b3b993ee7fc3a113cc8164c9cb2e7 (patch) | |
tree | 30e8574f3df5eb728aaedcf24430ff48955342e1 | |
parent | 9217000b58508f6c58ecb04afb25832aa1acb5fe (diff) | |
download | sssd_unused-6125149ebe8b3b993ee7fc3a113cc8164c9cb2e7.tar.gz sssd_unused-6125149ebe8b3b993ee7fc3a113cc8164c9cb2e7.tar.xz sssd_unused-6125149ebe8b3b993ee7fc3a113cc8164c9cb2e7.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 94d1f603..da08ca6b 100644 --- a/src/config/SSSDConfig.py +++ b/src/config/SSSDConfig.py @@ -1754,7 +1754,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, []); @@ -1762,7 +1762,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): |