leichongxiang / sshpt

Automatically exported from code.google.com/p/sshpt
0 stars 0 forks source link

Program failed with auth file is used. #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create auth file with line username:password as documented
2. sshpt -f hosts -a auth "uptime"
3. Atribute error on line 453 Version 1.1.2

What is the expected output? What do you see instead?

No error 

What version of the product are you using? On what operating system?

1.1.2

Please provide any additional information below:
following line should be like this
credentials = open(options.authfile).readline()

Also follwing fragements, when username and password acquired from auth
file, it should not ask usrname and password again.

    if options.authfile is not None:
        credentials = open(options.authfile).readline()
        username, password = credentials.split(":")

    # Get the username and password to use when checking hosts
    if options.username == None:
        username = raw_input('Username: ')
    if options.password == None:
        password = getpass.getpass('Password: ')

Original issue reported on code.google.com by daweiwan...@gmail.com on 27 Mar 2010 at 2:18

GoogleCodeExporter commented 9 years ago
I have corrected this bug in SVN commit 35.  It should show up in the main 
SSHPT release soon.

Original comment by riskable on 19 Oct 2010 at 2:10