From: Tony Mack Date: Wed, 11 Feb 2009 22:13:08 +0000 (+0000) Subject: added get method that returns dict with of pl_info and geni_info X-Git-Tag: sfa-0.9-0@14641~638 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=5c961e50f9c9282ac4bca1c20c8dfd524c6e1853;p=sfa.git added get method that returns dict with of pl_info and geni_info --- 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