Skip to content

Commit

Permalink
Updated an auth line
Browse files Browse the repository at this point in the history
  • Loading branch information
evanjfraser committed Aug 6, 2014
1 parent 0851477 commit f4ebd3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vmax/vmax.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f4ebd3a

Please sign in to comment.