lilydjwg / pssh

Parallel SSH Tools
Other
282 stars 64 forks source link

-h hosts.txt TypeError #109

Closed a49a closed 5 years ago

a49a commented 5 years ago

Input command pssh -h hosts.txt -i uptime

Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/bin/pssh", line 7, in exec(compile(f.read(), file, 'exec')) File "/Users/wolf/github-work/pssh/bin/pssh", line 109, in default_user=opts.user) File "/Users/wolf/github-work/pssh/psshlib/psshutil.py", line 20, in read_host_files hosts.extend(read_host_file(path, host_glob, default_user=default_user)) File "/Users/wolf/github-work/pssh/psshlib/psshutil.py", line 44, in read_host_file host, port, user = parse_host_entry(line, default_user, default_port, host_glob) TypeError: parse_host_entry() takes 3 positional arguments but 4 were given

Function parse_host_entry has an extra parameter in psshutil.py 44 line. Thus it leads to wrong reporting。

lilydjwg commented 5 years ago

Fixed, thanks!