Merge pull request #654 from EverythingMe/fix-graphite-verify

Fix: verify is optional value of Graphite's config
This commit is contained in:
Arik Fraimovich
2015-11-15 17:10:46 +02:00
2 changed files with 2 additions and 5 deletions

View File

@@ -7,9 +7,6 @@ machine:
2.7.3
dependencies:
pre:
- wget http://downloads.sourceforge.net/project/optipng/OptiPNG/optipng-0.7.5/optipng-0.7.5.tar.gz
- tar xvf optipng-0.7.5.tar.gz
- cd optipng-0.7.5; ./configure; make; sudo checkinstall -y;
- make deps
- pip install -r requirements_dev.txt
- pip install -r requirements.txt

View File

@@ -60,7 +60,7 @@ class Graphite(BaseQueryRunner):
else:
self.auth = None
self.verify = self.configuration["verify"]
self.verify = self.configuration.get("verify", True)
self.base_url = "%s/render?format=json&" % self.configuration['url']
def run_query(self, query):
@@ -81,4 +81,4 @@ class Graphite(BaseQueryRunner):
return data, error
register(Graphite)
register(Graphite)