Changeset 209
- Timestamp:
- 08/04/12 02:58:04 (13 years ago)
- File:
- 
          - 1 edited
 
 - 
          etherws/trunk/etherws.py (modified) (2 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
        etherws/trunk/etherws.pyr208 r209 783 783 if args.ctluser: 784 784 if not args.ctlpasswd: 785 args.ctlpasswd = getpass.getpass( )785 args.ctlpasswd = getpass.getpass('Control Password: ') 786 786 token = base64.b64encode('%s:%s' % (args.ctluser, args.ctlpasswd)) 787 787 req.add_header('Authorization', 'Basic %s' % token) … … 823 823 not args.target.startswith('wss://'): 824 824 raise ValueError('Invalid target URL scheme: %s' % args.target) 825 if opts['user'] and not opts['passwd']:826 raise ValueError('Authentication required but password empty')827 825 if not opts['user'] and opts['passwd']: 828 826 raise ValueError('Authentication required but username empty') 827 if opts['user'] and not opts['passwd']: 828 opts['passwd'] = getpass.getpass('Client Password: ') 829 829 result = request(args, 'addPort', { 830 830 'type': args.iftype, 
Note: See TracChangeset
          for help on using the changeset viewer.
      
