Changeset cebcdce for fedd/federation/emulab_segment.py
- Timestamp:
- Dec 1, 2011 5:10:32 PM (12 years ago)
- Branches:
- compt_changes, info-ops, master
- Children:
- 7f57435
- Parents:
- 32b4536
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/emulab_segment.py
r32b4536 rcebcdce 33 33 version=self.osversion) 34 34 if self.image and rv: 35 rv.set_attribute(' image', self.image)35 rv.set_attribute('emulab_access:image', self.image) 36 36 return rv 37 37 … … 295 295 raise service_error(service_error.internal, 296 296 "Cannot get node mapping of segment:%s/%s" % (pid, eid)) 297 def get_i mage(self, node, top):297 def get_initial_image(self, node, top): 298 298 for e in top.elements: 299 299 if isinstance(e, topdl.Computer): 300 300 if node == e.name: 301 if e.os: 302 return e.os[0].get_attribute('image') 301 if e.os and len(e.os) == 1: 302 return e.os[0].get_attribute( 303 'emulab_access:initial_image') 303 304 return None 304 305 … … 326 327 return False 327 328 elif state == 'initial': 328 image = self.get_i mage(lnode, top)329 image = self.get_initial_image(lnode, top) 329 330 if image: 330 331 pid, iid = image.split('/')
Note: See TracChangeset
for help on using the changeset viewer.