From: Tony Mack Date: Tue, 2 Jun 2009 19:58:22 +0000 (+0000) Subject: fixed local variable 'records' referenced before assignment bug X-Git-Tag: sfa-0.9-0@14641~350 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=9c60e681e739eb7abfa53da34880a5d029a63314;p=sfa.git fixed local variable 'records' referenced before assignment bug --- diff --git a/geni/methods/list.py b/geni/methods/list.py index 81c5e081..ddc460f3 100644 --- a/geni/methods/list.py +++ b/geni/methods/list.py @@ -27,6 +27,7 @@ class list(Method): def call(self, cred, hrn): self.api.auth.check(cred, 'list') + records = [] try: if not self.api.auth.hierarchy.auth_exists(hrn): raise MissingAuthority(hrn)