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" - re-open #5871 #10041

Closed
kantselovich opened this issue Jan 30, 2014 · 0 comments · Fixed by #10044
Closed

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

kantselovich opened this issue Jan 30, 2014 · 0 comments · Fixed by #10044

Comments

@kantselovich
Copy link

#5871 was not really fixed by #5875

 $ sudo salt 'xxx-yyyyy-qa' monit.summary
xxx-yyyyy-qa:
    Traceback (most recent call last):
      File "/usr/lib/python2.6/site-packages/salt/minion.py", line 659, in _thread_return
        return_data = func(*args, **kwargs)
      File "/usr/lib/python2.6/site-packages/salt/modules/monit.py", line 114, in summary
        parts[0].strip(), parts[1], parts[2].strip()
    IndexError: list index out of range

the error happens because monit.py tries to get values from empty list, which is a result of parsing empty string.

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

Successfully merging a pull request may close this issue.

1 participant