Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Nov 22, 2015 · 1 comment
Open

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

GoogleCodeExporter opened this issue Nov 22, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 29 May 2012 at 7:31

Attachments:

@GoogleCodeExporter
Copy link
Author

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

Original comment by [email protected] on 29 May 2012 at 4:53

  • Changed state: Accepted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant