Skip to content

Commit

Permalink
AV-190934: Fix for netscaler https monitor error
Browse files Browse the repository at this point in the history
  • Loading branch information
shardullatkar authored and Shardul Latkar committed Feb 8, 2024
1 parent dfa4431 commit 3a6e702
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,15 +287,15 @@ def convert_monitor(self, ns_monitor, input_dir, netscalar_command,

custom_header = ns_monitor.get('customHeaders')
if custom_header:
avi_monitor['https_monitor'].update({
avi_monitor['https_monitor'] = {
'exact_http_request': True,
'http_request': (send + ' HTTP/1.0' + "\r\n" +
custom_header + "\r\n").replace('"',
'').replace('\\r\\n', '\r\n') if
send else ('HTTP/1.0' + "\r\n" +
custom_header + "\r\n").replace('"',
'').replace('\\r\\n', '\r\n')
})
}
elif mon_type == 'HTTP':
avi_monitor["type"] = "HEALTH_MONITOR_HTTP"
send = ns_monitor.get('httpRequest', None)
Expand Down

0 comments on commit 3a6e702

Please sign in to comment.