covert slice[max_nodes] to int
authorTony Mack <tmack@cs.princeton.edu>
Wed, 17 Jun 2009 18:11:09 +0000 (18:11 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Wed, 17 Jun 2009 18:11:09 +0000 (18:11 +0000)
geni/util/api.py

index 2774f80..87c01d5 100644 (file)
@@ -250,6 +250,8 @@ class GeniAPI:
                 pl_record["instantiation"] = "delegated"  # "plc-instantiated"
             if not "max_nodes" in pl_record:
                 pl_record["max_nodes"] = 10
+            else:
+                pl_record['max_nodes'] = int(pl_record['max_nodes']) 
             pl_record["name"] = hrn_to_pl_slicename(hrn)
 
         elif type == "node":