summaryrefslogtreecommitdiffstats
path: root/ipaclient
diff options
context:
space:
mode:
authorDavid Kupka <dkupka@redhat.com>2016-08-04 16:02:24 +0200
committerJan Cholasta <jcholast@redhat.com>2016-08-17 14:16:04 +0200
commitba16d99f37a3dcdd7ca74fcdaa1b2dea8b0a74bf (patch)
treef7c97a858e7ce83b750bacf20fa2441f24805d3c /ipaclient
parentff51e43a3eb2431f253a25351b1b6378224c4b66 (diff)
downloadfreeipa-ba16d99f37a3dcdd7ca74fcdaa1b2dea8b0a74bf.tar.gz
freeipa-ba16d99f37a3dcdd7ca74fcdaa1b2dea8b0a74bf.tar.xz
freeipa-ba16d99f37a3dcdd7ca74fcdaa1b2dea8b0a74bf.zip
schema cache: Do not reset ServerInfo dirty flag
Once dirty flag is set to True it must not be set back to False. Otherwise changes are not written back to file. https://fedorahosted.org/freeipa/ticket/6048 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipaclient')
-rw-r--r--ipaclient/remote_plugins/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipaclient/remote_plugins/__init__.py b/ipaclient/remote_plugins/__init__.py
index 444651d30..976d69687 100644
--- a/ipaclient/remote_plugins/__init__.py
+++ b/ipaclient/remote_plugins/__init__.py
@@ -59,7 +59,8 @@ class ServerInfo(collections.MutableMapping):
return self._dict[key]
def __setitem__(self, key, value):
- self._dirty = key not in self._dict or self._dict[key] != value
+ if key not in self._dict or self._dict[key] != value:
+ self._dirty = True
self._dict[key] = value
def __delitem__(self, key):