Changeset de86b35 for fedd/federation


Ignore:
Timestamp:
Dec 2, 2010 10:27:31 AM (14 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master
Children:
d03c991
Parents:
d894c21
Message:

Flat out bug in the lambda definition in access. The emulab_access deals with cases when services are requested but not export project. (That was a bug, too)

Location:
fedd/federation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/access.py

    rd894c21 rde86b35  
    252252        # so numerically larger priorities are checked first.
    253253        if compare: c = compare
    254         else: c = lambda(a, b): cmp(b,a)
     254        else: c = lambda a, b: cmp(b,a)
    255255
    256256        if filter: f = filter
  • fedd/federation/emulab_access.py

    rd894c21 rde86b35  
    469469        if 'service' in req:
    470470            ep = get_export_project(req['service'])
    471             pf = lambda(a): a.value[0] == ep
     471            if ep: pf = lambda(a): a.value[0] == ep
     472            else: pf = None
    472473        else:
    473474            ep = None
Note: See TracChangeset for help on using the changeset viewer.