Changeset 75720ab


Ignore:
Timestamp:
May 25, 2010 10:46:39 AM (14 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
b53e1fc
Parents:
b10375f
Message:

Make this more useful in unmapped or partiall mapped situations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_ftopo.py

    rb10375f r75720ab  
    5353    for e in [ e for e in top.elements \
    5454            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))
    5958else:
    6059    sys.exit("Badly formatted response!?")
Note: See TracChangeset for help on using the changeset viewer.