Changeset 2425


Ignore:
Timestamp:
Aug 10, 2009, 6:55:58 PM (15 years ago)
Author:
broder
Message:

Only aklog to a cell if encryption is actually needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package_branches/invirt-web/cherrypy/code/getafsgroups.py

    r2119 r2425  
    3434        if c.type == 'afs' and c.cell == cell and hasattr(c, 'auth'):
    3535            encrypt = c.auth
    36     subprocess.check_call(['aklog', cell], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
     36    if encrypt:
     37        subprocess.check_call(['aklog', cell], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    3738    p = subprocess.Popen(["pts", "membership", "-encrypt" if encrypt else '-noauth', group, '-c', cell],
    3839                         stdout=subprocess.PIPE, stderr=subprocess.PIPE)
Note: See TracChangeset for help on using the changeset viewer.