From f4ebd3a620a588aea96deae3ab72914358b0d1b9 Mon Sep 17 00:00:00 2001 From: Evan Fraser Date: Wed, 6 Aug 2014 14:02:05 +1200 Subject: [PATCH] Updated an auth line --- vmax/vmax.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmax/vmax.py b/vmax/vmax.py index 8be04fce..2bfdb28a 100755 --- a/vmax/vmax.py +++ b/vmax/vmax.py @@ -146,7 +146,7 @@ def get_metric(name): headers = {'content-type': 'application/json','accept':'application/json'} #set the headers for how we want the response #make the actual request, specifying the URL, the JSON from above, standard basic auth, the headers and not to verify the SSL cert. - r = requests.post(baseurl, requestJSON, auth=('monitor', 'm0nitors'), headers=headers, verify=False) + r = requests.post(baseurl, requestJSON, auth=(vmax_dict[key]['user'], vmax_dict[key]['pass']), headers=headers, verify=False) #take the raw response text and deserialize it into a python object. try: