From b6eeb0a7c8ce33518ec8f06815261fef253e4e33 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Wed, 17 Jun 2009 18:11:09 +0000 Subject: [PATCH] covert slice[max_nodes] to int --- geni/util/api.py | 2 ++ 1 file changed, 2 insertions(+) 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": -- 2.43.0