Commit 68dd510b authored by Petr Pudlak's avatar Petr Pudlak
Browse files

Bump serial numbers in ConfigWriter only in offline mode



Otherwise, WConfd takes care of it.
Signed-off-by: default avatarPetr Pudlak <pudlak@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent 30f011c4
......@@ -2939,10 +2939,10 @@ class ConfigWriter(object):
if destination is None:
destination = self._cfg_file
self._BumpSerialNo()
# Save the configuration data. If offline, write the file directly.
# If online, call WConfd.
if self._offline:
self._BumpSerialNo()
txt = serializer.DumpJson(
self._ConfigData().ToDict(_with_private=True),
private_encoder=serializer.EncodeWithPrivateFields
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment