Changeset 262328f


Ignore:
Timestamp:
Dec 3, 2010 10:49:56 AM (14 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master
Children:
9252414
Parents:
b7a61ac
Message:

Clean up user proposed experiment names that DETER/Emulab don't like.

Fixes #8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/emulab_access.py

    rb7a61ac r262328f  
    928928        user = None
    929929        alloc_log = None
     930        vchars_re = '[^' + string.ascii_letters + string.digits  + '-]'
    930931
    931932        for a in attrs:
     
    946947                ename = a['value']
    947948
    948         if not ename:
     949        if ename:
     950            # Clean up the experiment name so that emulab will accept it.
     951            ename = re.sub(vchars_re, '-', ename)
     952
     953        else:
    949954            ename = ""
    950955            for i in range(0,5):
Note: See TracChangeset for help on using the changeset viewer.