Ignore:
Timestamp:
Mar 18, 2010 8:35:10 AM (14 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
114d24b
Parents:
3159f5d
Message:

Improved SSL error handling (more try blocks, BIOError exception)
Separate get_url into util
Work with remote splitter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/experiment_control.py

    r3159f5d r1dcaff4  
    936936        if r.has_key('Ns2SplitResponseBody'):
    937937            r = r['Ns2SplitResponseBody']
    938             if r.has_key('output'):
    939                 return r['output'].splitlines()
     938            ed = r.get('experimentdescription', None)
     939            if ed.has_key('topdldescription'):
     940                return topdl.Topology(**ed['topdldescription'])
    940941            else:
    941942                raise service_error(service_error.protocol,
     
    21162117                self.log.debug("Calling remote splitter at %s" % \
    21172118                        self.splitter_url)
    2118                 split_data = self.remote_splitter(self.splitter_url,
     2119                top = self.remote_splitter(self.splitter_url,
    21192120                        file_content, master)
    21202121            else:
     
    21332134                split_data = tclparser.stdout
    21342135
    2135             top = topdl.topology_from_xml(file=split_data, top="experiment")
     2136                top = topdl.topology_from_xml(file=split_data, top="experiment")
    21362137
    21372138            hosts, ip_allocator = self.allocate_ips_to_topo(top)
Note: See TracChangeset for help on using the changeset viewer.