From ad0b45c8f3b1062c612cc51a6ba46a7ea723a118 Mon Sep 17 00:00:00 2001 From: Rod A Santiago Date: Fri, 12 Aug 2016 16:53:01 -0700 Subject: [PATCH] added method getitem() to the SessionMetaData class --- daemon/core/session.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/daemon/core/session.py b/daemon/core/session.py index c34085ee..a092b269 100644 --- a/daemon/core/session.py +++ b/daemon/core/session.py @@ -1244,6 +1244,12 @@ class SessionMetaData(ConfigurableManager): def additem(self, key, value): self.configs[key] = value + def getitem(self, key): + try: + return self.configs[key] + except KeyError: + pass + return None def items(self): return self.configs.iteritems()