From ba7782e093ad6699800873a0ef5fbff911773820 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Mon, 26 Apr 2010 20:27:15 +0000 Subject: [PATCH] move docstring to beginning of method --- sfa/managers/aggregate_manager_pl.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()) -- 2.43.0