From: Mohamed Larabi Date: Tue, 19 Feb 2013 17:11:31 +0000 (+0100) Subject: dirty hack to fix federica list_slices: the issue is that federica returns the list... X-Git-Tag: sfa-2.1-25~3 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f4ae19a0fdd4c234908dbbec5ed4d3e78ee266ac;p=sfa.git dirty hack to fix federica list_slices: the issue is that federica returns the list of slice's urn in a string format --- diff --git a/sfa/federica/fddriver.py b/sfa/federica/fddriver.py index 3b947566..368c3dc9 100644 --- a/sfa/federica/fddriver.py +++ b/sfa/federica/fddriver.py @@ -54,7 +54,11 @@ class FdDriver (PlDriver): return "federica" def list_slices (self, creds, options): - return self.response(self.shell.listSlices()) + # the issue is that federica returns the list of slice's urn in a string format + # this is why this dirty hack is needed until federica fixes it. + slices_str = self.shell.listSlices()['value'][1:-2] + slices_list = slices_str.split(", ") + return slices_list def sliver_status (self, slice_urn, slice_hrn): return "fddriver.sliver_status: undefined/todo for slice %s"%slice_hrn