must remember test data is stored in dicts now, not lists. use .values() to get list...
authorTony Mack <tmack@cs.princeton.edu>
Tue, 1 Apr 2008 00:32:20 +0000 (00:32 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Tue, 1 Apr 2008 00:32:20 +0000 (00:32 +0000)
qaapi/qa/tests/add_test_data.py

index a842083..2498499 100644 (file)
@@ -22,11 +22,11 @@ class add_test_data(Test):
                                  'plc' in object and object['plc'] == plc['name'] or \
                                  object['plc'] == None   
      
                                  'plc' in object and object['plc'] == plc['name'] or \
                                  object['plc'] == None   
      
-       sitelist = filter(this_plc, self.config.sites         
-       nodelist = filter(this_plc, self.config.nodes)
-       slicelist = filter(this_plc, self.config.slices)
-       personlist = filter(this_plc, self.config.persons) 
-       
+       sitelist = filter(this_plc, self.config.sites.values())         
+       nodelist = filter(this_plc, self.config.nodes.values())
+       slicelist = filter(this_plc, self.config.slices.values())
+       personlist = filter(this_plc, self.config.persons.values()
+
        # Add Test site
        for site in sitelist:
            sites = api.GetSites(auth, [site['login_base']])
        # Add Test site
        for site in sitelist:
            sites = api.GetSites(auth, [site['login_base']])