tasen / parallel-ssh

Automatically exported from code.google.com/p/parallel-ssh
Other
0 stars 0 forks source link

ValueError: min() arg is an empty sequence #71

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create $TEMPFILE with a list of hosts
2. parallel-ssh -h $TEMPFILE -t -1 -o ${LOG_DIR} sudo -u ${USER} 
/home/${USER}/scripts/online.sh &

What is the expected output? What do you see instead?
Traceback (most recent call last):
  File "/usr/bin/parallel-ssh", line 115, in <module>
    do_pssh(hosts, cmdline, opts)
  File "/usr/bin/parallel-ssh", line 90, in do_pssh
    if min(statuses) < 0:
ValueError: min() arg is an empty sequence

What version of the product are you using? On what operating system?
2.2.2-0ubuntu1 on LinuxMint12

Please provide any additional information below.
I have attached a patch with a try-except block around the failing if statement.

Original issue reported on code.google.com by andreas....@gmail.com on 29 May 2012 at 7:31

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks. The patch looks great, and I'll make sure to apply it before our next 
release.

Original comment by amcna...@gmail.com on 29 May 2012 at 4:53