From 5c961e50f9c9282ac4bca1c20c8dfd524c6e1853 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Wed, 11 Feb 2009 22:13:08 +0000 Subject: [PATCH] added get method that returns dict with of pl_info and geni_info --- geni/util/record.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/geni/util/record.py b/geni/util/record.py index 086723d6..56aafae0 100644 --- a/geni/util/record.py +++ b/geni/util/record.py @@ -279,7 +279,13 @@ class GeniRecord(): print " pl_info:" pl_info = getattr(self, "pl_info", {}) if pl_info: + for key in pl_info.keys(): print " ", key, ":", pl_info[key] + def get(self): + info = {} + info.update(getattr(self, "geni_info", {})) + info.update(getattr(self, "pl_info", {})) + return info -- 2.43.0