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

IndexError: list index out of range on "salt '*' monit.summary" #5871

Closed
arthurzenika opened this issue Jul 2, 2013 · 3 comments
Closed

Comments

@arthurzenika
Copy link
Contributor

When monit isn't installed on the minion side, one gets

    Traceback (most recent call last):
      File "/usr/lib/python2.6/dist-packages/salt/minion.py", line 428, in _thread_return
        ret['return'] = func(*args, **kwargs)
      File "/usr/lib/python2.6/dist-packages/salt/modules/monit.py", line 91, in summary
        resource, name, status = parts[0].strip(), parts[1], parts[2].strip()
    IndexError: list index out of range

Shouldn't salt test for (in salt/modules/monit.py) ?

# monit summary
-bash: monit: command not found
@s0undt3ch
Copy link
Collaborator

@arthurlogilab #5875 fixes this issue. Thanks for reporting this!

@arthurzenika
Copy link
Contributor Author

Thanks, that was fast!

@s0undt3ch
Copy link
Collaborator

@arthurlogilab It was also very easy ;)

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

No branches or pull requests

2 participants