- Timestamp:
- May 25, 2010 10:46:39 AM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- b53e1fc
- Parents:
- b10375f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedd_ftopo.py
rb10375f r75720ab 53 53 for e in [ e for e in top.elements \ 54 54 if isinstance(e, topdl.Computer)]: 55 hn = e.get_attribute('hostname') 56 tb = e.get_attribute('testbed') 57 if hn and tb: 58 print ":".join([",".join(e.name), hn, tb]) 55 hn = e.get_attribute('hostname') or "-" 56 tb = e.get_attribute('testbed') or "-" 57 print ":".join((e.name, hn, tb)) 59 58 else: 60 59 sys.exit("Badly formatted response!?")
Note: See TracChangeset
for help on using the changeset viewer.