Changeset 210


Ignore:
Timestamp:
08/04/12 03:01:08 (12 years ago)
Author:
atzm
Message:
  • reduce unnecessary check for addport tap
File:
1 edited

Legend:

Unmodified
Added
Removed
  • etherws/trunk/etherws.py

    r209 r210  
    823823               not args.target.startswith('wss://'): 
    824824                raise ValueError('Invalid target URL scheme: %s' % args.target) 
    825         if not opts['user'] and opts['passwd']: 
    826             raise ValueError('Authentication required but username empty') 
    827         if opts['user'] and not opts['passwd']: 
    828             opts['passwd'] = getpass.getpass('Client Password: ') 
     825            if not opts['user'] and opts['passwd']: 
     826                raise ValueError('Authentication required but username empty') 
     827            if opts['user'] and not opts['passwd']: 
     828                opts['passwd'] = getpass.getpass('Client Password: ') 
    829829        result = request(args, 'addPort', { 
    830830            'type':    args.iftype, 
Note: See TracChangeset for help on using the changeset viewer.