Skip to content

Commit

Permalink
is_external should always be cast as a bool
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoCavaille committed Jan 14, 2015
1 parent 677417f commit 912908c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion checks.d/elastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

# project
from checks import AgentCheck
from config import _is_affirmative
from util import headers, Platform


Expand Down Expand Up @@ -141,7 +142,7 @@ def get_instance_config(self, instance):
if url is None:
raise Exception("An url must be specified in the instance")

is_external = instance.get('is_external', False)
is_external = _is_affirmative(instance.get('is_external', False))

# Support URLs that have a path in them from the config, for
# backwards-compatibility.
Expand Down

0 comments on commit 912908c

Please sign in to comment.