From ba16d99f37a3dcdd7ca74fcdaa1b2dea8b0a74bf Mon Sep 17 00:00:00 2001 From: David Kupka Date: Thu, 4 Aug 2016 16:02:24 +0200 Subject: 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 --- ipaclient/remote_plugins/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ipaclient/remote_plugins') 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): -- cgit