Changeset 8dbbdc5 for fedd/federation


Ignore:
Timestamp:
May 24, 2010 7:11:34 AM (15 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
49051fb
Parents:
0863dd1
Message:

Workaround for pickling errors. This needs a real fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/deter_internal_access.py

    r0863dd1 r8dbbdc5  
    672672                'allocID': req['allocID'],
    673673                'allocationLog': logv,
    674                 'segmentdescription': {
    675                     'topdldescription': rtopo.to_dict()
    676                     },
    677674                }
    678         retval = self.state[aid]['started']
     675        retval = copy.deepcopy(self.state[aid]['started'])
     676        retval['allocID'] = req['allocID']
     677        # XXX: this doesn't pickle!!
     678        retval['segmentdescription'] = { 'topdldescription': topo.to_dict() }
    679679        self.write_state()
    680680        self.state_lock.release()
Note: See TracChangeset for help on using the changeset viewer.