fix bugs
authorTony Mack <tmack@cs.princeton.edu>
Tue, 21 Apr 2009 16:45:53 +0000 (16:45 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Tue, 21 Apr 2009 16:45:53 +0000 (16:45 +0000)
geni/util/nodes.py
geni/util/slices.py

index 2578abf..2d4958d 100644 (file)
@@ -107,7 +107,7 @@ class Nodes(SimpleStorage):
         for aggregate in aggregates:
             try:
                 # get the rspec from the aggregate
-                agg_rspec = aggregates[aggregate].resources(credential)
+                agg_rspec = aggregates[aggregate].get_resources(credential)
                 # extract the netspec from each aggregates rspec
                 rspec.parseString(agg_rspec)
                 networks.extend([{'NetSpec': rspec.getDictsByTagName('NetSpec')}])
index a62fce9..5bfc5ee 100644 (file)
@@ -60,7 +60,7 @@ class Slices(SimpleStorage):
         credential = self.api.getCredential()
         for aggregate in aggregates:
             try:
-                slices = aggregates[aggregate].slices(credential)
+                slices = aggregates[aggregate].get_slices(credential)
                 slice_hrns.extend(slices)
             except:
                 print >> log, "Error calling slices at aggregate %(aggregate)s" % locals()