summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow (lxpbuetow.webde.local) <paul.buetow@1und1.de>2014-07-14 15:16:43 +0200
committerPaul Buetow (lxpbuetow.webde.local) <paul.buetow@1und1.de>2014-07-14 15:16:43 +0200
commitd328cdb5d57fb6ccf7192c3c50eb7e3c931f2654 (patch)
tree277e1fc6703149cbe07e499c14da51f9200db9d7
parent4ccb040adafa8921f9cbe72f8fe59ca2ea9cb7b4 (diff)
fix
-rwxr-xr-xsrc/fapi10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fapi b/src/fapi
index 0333757..854901a 100755
--- a/src/fapi
+++ b/src/fapi
@@ -491,14 +491,14 @@ class Fapi(FapiBase):
destination = f5().get_destination_v2([name])[0]
port = str(destination['port'])
ip = destination['address'].split('/')[-1]
- filename = ip + ':' + port
- failtouch = ' || touch ' + filename + '.failed'
- headerdump = ' -D ' + filename + '.header'
+ ipport = ip + ':' + port
+ failtouch = ' || touch ' + ipport + '.failed'
+ headerdump = ' -D ' + ipport + '.header'
m = re.match('.*43$', port)
if m:
- return 'curl -m 3' + headerdump + ' -k https://' + ip + failtouch
+ return 'curl -m 3' + headerdump + ' -k https://' + ipport + failtouch
else:
- return 'curl -m 3' + headerdump + ' http://' + ip + failtouch
+ return 'curl -m 3' + headerdump + ' http://' + ipport + failtouch
else:
return protocol + ': Can only curl PROTOCOL_TCP'
return lambda: curl(f5)