changeset 366:81e6d4a516c3

storage (pgsql): getDefaultConfiguration now returns a shallow copy of default conf dict, to avoid modification.
author Goffi <goffi@goffi.org>
date Sat, 04 Nov 2017 21:17:12 +0100
parents 9fbb31ce495b
children a772f7dac930
files sat_pubsub/pgsql_storage.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat_pubsub/pgsql_storage.py	Fri Nov 03 14:36:19 2017 +0100
+++ b/sat_pubsub/pgsql_storage.py	Sat Nov 04 21:17:12 2017 +0100
@@ -387,7 +387,7 @@
         return d
 
     def getDefaultConfiguration(self, nodeType):
-        return self.defaultConfig[nodeType]
+        return self.defaultConfig[nodeType].copy()
 
     def formatLastItems(self, result):
         last_items = []