Ignore:
Timestamp:
Oct 29, 2009, 12:52:59 AM (15 years ago)
Author:
price
Message:

Style fixes in, and Debian changelog for, list and listuser.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-remote/server/usr/sbin/invirt-remote-list

    r2511 r2516  
    11#!/usr/bin/python
    22"""
    3 Returns a user's list of vm's
     3Lists the VMs belonging to the remote user.
    44"""
    55
     
    77import sys
    88import os
    9 import yaml
     9
    1010
    1111def main(argv):
    1212    if len(argv) < 1:
    13         print >>sys.stderr, "usage: invirt-remote-list "
     13        print >>sys.stderr, "usage: invirt-remote-list"
    1414        return 2
    15     username = os.environ['REMUSER'].rsplit('@ATHENA.MIT.EDU')[0]
     15
     16    username = os.environ['REMOTE_USER'].rsplit('@ATHENA.MIT.EDU')[0]
    1617    p = Popen(['/usr/sbin/invirt-remote-listuser', username], stdout=PIPE)
    1718    output = p.communicate()[0]
     
    2021    return p.returncode
    2122
     23
    2224if __name__ == '__main__':
    2325    sys.exit(main(sys.argv))
    24 
    25 # vim:et:sw=4:ts=4
Note: See TracChangeset for help on using the changeset viewer.