try:
headers = {'Content-type': 'application/json'}
- response = requests.put(url, headers=headers, json=kibana_content)
+ response = requests.put(url,
+ headers=headers,
+ json=kibana_content,
+ verify=False)
except requests.exceptions.RequestException as exc:
ret['result'] = False
ret['comment'] = ("Failed to create Kibana object {0}\n"
return ret
try:
- response = requests.delete(url)
+ response = requests.delete(url, verify=False)
except requests.exceptions.RequestException as exc:
ret['result'] = False
ret['comment'] = ("Failed to delete Kibana object {0}\n"
if not index:
return False, 'Cannot get the index needed by Kibana client'
- url = "http://{0}/{1}/{2}/{3}".format(url, index, kibana_type, name)
+ url = "{0}/{1}/{2}/{3}".format(url, index, kibana_type, name)
return url, index