From 43cea8a7d96e2086cb209e5d61e5df45de24c90f Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Wed, 17 Jun 2009 17:40:23 +0000 Subject: [PATCH] fix bug in create_slice_aggregate(), compare list of nodes in rspec against list of node in plc db --- geni/util/slices.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/geni/util/slices.py b/geni/util/slices.py index 595bc281..55bac54a 100644 --- a/geni/util/slices.py +++ b/geni/util/slices.py @@ -162,7 +162,10 @@ class Slices(SimpleStorage): if key in slice and slice[key]: slice_fields[key] = slice[key] self.api.plshell.AddSlice(self.api.plauth, slice_fields) - + slice = slice_fields + slice['node_ids'] = 0 + else: + slice = slices[0] # get the list of valid slice users from the registry and make # they are added to the slice researchers = slice.get('researcher', []) @@ -200,6 +203,8 @@ class Slices(SimpleStorage): nodelist = self.api.plshell.GetNodes(self.api.plauth, slice['node_ids'], ['hostname']) hostnames = [node['hostname'] for node in nodelist] + print "XX node_ids", slice['node_ids'] + print "XX hostnames", hostnames # get netspec details nodespecs = spec.getDictsByTagName('NodeSpec') nodes = [] -- 2.43.0