Changeset 2572


Ignore:
Timestamp:
Nov 29, 2009, 8:48:47 AM (15 years ago)
Author:
broder
Message:

Take advantage of the newly added symbolic names for PTS connection
encryption levels.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-base/python/invirt/authz/locker.py

    r2571 r2572  
    111111    """
    112112    try:
    113         ent = pts.PTS(cell, 3 if auth else 0).getEntry(name)
     113        ent = pts.PTS(cell, pts.PTS_ENCRYPT if auth else pts.PTS_UNAUTH).\
     114            getEntry(name)
    114115        if ent.id > 0:
    115116            return set([ent.name])
Note: See TracChangeset for help on using the changeset viewer.