Module: check_mk
Branch: master
Commit: 355402481ea4f4fd6ebdfe09b1bf8866670d3885
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=355402481ea4f4…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Wed Jul 13 16:14:46 2016 +0200
fixed bug in password store where the store could get initialised incorrectly
---
lib/passwordstore.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/passwordstore.py b/lib/passwordstore.py
index fd74d7e..40a6b57 100644
--- a/lib/passwordstore.py
+++ b/lib/passwordstore.py
@@ -331,6 +331,8 @@ class ChangeContext(object):
def __exit__(self, typ, value, tb):
if typ == None:
self.__data['keydata'] = self.__backend.key_data()
+ if 'secrets' not in self.__data:
+ self.__data['secrets'] = {}
with NamedTemporaryFile(dir=os.path.dirname(self.__filename), delete=False)
as f:
json.dump(self.__data, f)