Skip to content

--static option in salt raises ValueError and has been broken for a very long time #24776

Closed

Description

@nmadhok

Docs for --static option: http://docs.saltstack.com/en/latest/ref/cli/salt.html#options

Here's the traceback:

[root@nitin-salt-develop ~]# salt '*' --static test.ping
[ERROR   ] An un-handled exception was caught by salt's global exception handler:
ValueError: list.remove(x): x not in list
Traceback (most recent call last):
  File "/usr/bin/salt", line 10, in <module>
    salt_main()
  File "/usr/lib/python2.6/site-packages/salt/scripts.py", line 349, in salt_main
    client.run()
  File "/usr/lib/python2.6/site-packages/salt/cli/salt.py", line 90, in run
    for res in batch.run():
  File "/usr/lib/python2.6/site-packages/salt/cli/batch.py", line 179, in run
    active.remove(minion)
ValueError: list.remove(x): x not in list
Traceback (most recent call last):
  File "/usr/bin/salt", line 10, in <module>
    salt_main()
  File "/usr/lib/python2.6/site-packages/salt/scripts.py", line 349, in salt_main
    client.run()
  File "/usr/lib/python2.6/site-packages/salt/cli/salt.py", line 90, in run
    for res in batch.run():
  File "/usr/lib/python2.6/site-packages/salt/cli/batch.py", line 179, in run
    active.remove(minion)
ValueError: list.remove(x): x not in list

This fix also needs to be applied to Salt-Enterprise 4.0.2 and older

Activity

  1. added a commit that references this issue on Jun 18, 2015
    a34b74a
  2. changed the title [-]--static option in salt raises TypeError and has been broken for a very long time[/-] [+]--static option in salt raises ValueError and has been broken for a very long time[/+] on Jun 18, 2015
  3. added a commit that references this issue on Jun 18, 2015
    b290b9b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions