URL: https://github.com/freeipa/freeipa/pull/1062 Author: abbra Title: #1062: dsinstance: Restore context after changing dse.ldif Action: opened
PR body: """ Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1490762 """ To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/1062/head:pr1062 git checkout pr1062
From 8893708b16cb71fc568e6f76b09e4791aa12b92e Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy <aboko...@redhat.com> Date: Tue, 12 Sep 2017 11:22:48 +0300 Subject: [PATCH] dsinstance: Restore context after changing dse.ldif Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1490762 --- ipaserver/install/dsinstance.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py index d823635caf..3eeb7f7269 100644 --- a/ipaserver/install/dsinstance.py +++ b/ipaserver/install/dsinstance.py @@ -596,6 +596,7 @@ def __update_dse_ldif(self): parser.parse() new_dse_ldif.flush() shutil.copy2(temp_filename, dse_filename) + tasks.restore_context(dse_filename) try: os.remove(temp_filename) except OSError as e:
_______________________________________________ FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org