git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d29c739
)
covert slice[max_nodes] to int
author
Tony Mack
<tmack@cs.princeton.edu>
Wed, 17 Jun 2009 18:11:09 +0000
(18:11 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Wed, 17 Jun 2009 18:11:09 +0000
(18:11 +0000)
geni/util/api.py
patch
|
blob
|
history
diff --git
a/geni/util/api.py
b/geni/util/api.py
index
2774f80
..
87c01d5
100644
(file)
--- 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
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":
pl_record["name"] = hrn_to_pl_slicename(hrn)
elif type == "node":