Skip to content

Commit

Permalink
Fix for issue ansible#8152: Missing auth headers and a faulty JSON de…
Browse files Browse the repository at this point in the history
…code

Looks like this regressed in commit 9730157 due to fetch_url refactors.
  • Loading branch information
Will Angenent committed Jul 17, 2014
1 parent d4548fd commit 0e33db8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/net_infrastructure/netscaler
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ class netscaler(object):
'Content-Type' : 'application/x-www-form-urlencoded',
}

response, info = fetch_url(self.module, request_url, data=data_json)
response, info = fetch_url(self.module, request_url, data=data_json, headers=headers)

return json.load(response.read())
return json.load(response)

def prepare_request(self, action):
resp = self.http_request(
Expand Down

0 comments on commit 0e33db8

Please sign in to comment.