Changeset d2471df
- Timestamp:
- May 12, 2010 7:26:35 AM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- 8483f24
- Parents:
- 1a4ee0f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/topdl.py
r1a4ee0f rd2471df 218 218 else: l = None 219 219 220 return Interface(substrate= self.substrate, name=self.name,220 return Interface(substrate=[s for s in self.substrate], name=self.name, 221 221 capacity=c, latency=l, 222 222 attribute = [ a.clone() for a in self.attribute]) … … 275 275 276 276 def clone(self): 277 return Computer(name=self.name, 277 # Copy the list of names 278 return Computer(name=[ n for n in self.name ], 278 279 cpu=[x.clone() for x in self.cpu], 279 280 os=[x.clone() for x in self.os], … … 286 287 rv = { } 287 288 if self.name: 288 rv['name'] = self.name289 rv['name'] = [ n for n in self.name] 289 290 if self.cpu: 290 291 rv['cpu'] = [ c.to_dict() for c in self.cpu ]
Note: See TracChangeset
for help on using the changeset viewer.