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

ERROR: Connection failure. Exception: global name 'is_master_node' is not defined #9

Open
erik-de-neve opened this issue Jan 25, 2016 · 1 comment

Comments

@erik-de-neve
Copy link

Hi,

If i enable master_only = True, it always gives an error (also on the masternode):
ERROR: Connection failure. Exception: global name 'is_master_node' is not defined

I fixed this by installing curator, and import it in the es_stats_zabbix/utils.py script.
Here is a diff with my version:

# diff es_stats_zabbix/utils.py /tmp/utils.py.orig 
6d5
< import curator
88c87
<     if master_only and not curator.is_master_node(client):

---
>     if master_only and not is_master_node(client):

is this the right way to fix this?

Thanks,
Erik

@untergeek
Copy link
Owner

Sorry for the belated response.

Your suggestion should fix it temporarily. Thanks for reporting the bug. I will probably make curator a dependency to use the client methods in there (that way I don't have to maintain them in two places).

The benefit will be YAML client configuration files, too. INI is pretty crusty and old.

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