fixed local variable 'records' referenced before assignment bug
[sfa.git] / geni / methods / list.py
index 81c5e08..ddc460f 100644 (file)
@@ -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)