From: Tony Mack <tmack@cs.princeton.edu>
Date: Wed, 17 Jun 2009 18:11:09 +0000 (+0000)
Subject: covert slice[max_nodes] to int
X-Git-Tag: sfa-0.9-0@14641~248
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=b6eeb0a7c8ce33518ec8f06815261fef253e4e33;p=sfa.git

covert slice[max_nodes] to int
---

diff --git a/geni/util/api.py b/geni/util/api.py
index 2774f805..87c01d58 100644
--- a/geni/util/api.py
+++ b/geni/util/api.py
@@ -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":