From: Tony Mack Date: Mon, 26 Apr 2010 20:27:15 +0000 (+0000) Subject: move docstring to beginning of method X-Git-Tag: sfa-0.9-11~6^2~24 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=ba7782e093ad6699800873a0ef5fbff911773820 move docstring to beginning of method --- diff --git a/sfa/managers/aggregate_manager_pl.py b/sfa/managers/aggregate_manager_pl.py index 2ca9db4f..071a26e7 100644 --- a/sfa/managers/aggregate_manager_pl.py +++ b/sfa/managers/aggregate_manager_pl.py @@ -46,12 +46,12 @@ def __get_hostnames(nodes): return hostnames def create_slice(api, xrn, xml): - hrn, type = urn_to_hrn(xrn) - peer = None - """ Verify HRN and initialize the slice record in PLC if necessary. """ + + hrn, type = urn_to_hrn(xrn) + peer = None slices = Slices(api) peer = slices.get_peer(hrn) sfa_peer = slices.get_sfa_peer(hrn) @@ -66,7 +66,7 @@ def create_slice(api, xrn, xml): slice = network.get_slice(api, hrn) current = __get_hostnames(slice.get_nodes()) - + network.addRSpec(xml, api.config.SFA_AGGREGATE_RSPEC_SCHEMA) request = __get_hostnames(network.nodesWithSlivers())