From: Tony Mack Date: Wed, 21 Apr 2010 01:20:41 +0000 (+0000) Subject: return only the rspec for the slice X-Git-Tag: sfa-0.9-11~6^2~27 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=9915bbc9188224c2b82a0a6b8dba206622fced86 return only the rspec for the slice --- diff --git a/sfa/plc/network.py b/sfa/plc/network.py index 94f6e04a..b3e0d051 100644 --- a/sfa/plc/network.py +++ b/sfa/plc/network.py @@ -509,8 +509,9 @@ class Network: with element: if self.slice: self.slice.toxml(xml) - for site in self.getSites(): - site.toxml(xml) + else: + for site in self.getSites(): + site.toxml(xml) header = '\n' return header + str(xml)