summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow (lxpbuetow.webde.local) <paul.buetow@1und1.de>2014-07-14 15:20:32 +0200
committerPaul Buetow (lxpbuetow.webde.local) <paul.buetow@1und1.de>2014-07-14 15:20:32 +0200
commit280621e97ed7de337baaff04d20e6049ac913e1b (patch)
tree9c785f725a9fb6a73e52c4dc01f2a28a48c76e68
parent687f60d84b270de97afa51e179dbf9cb8296d211 (diff)
add address
-rwxr-xr-xsrc/fapi4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fapi b/src/fapi
index f474ba8..1c441bf 100755
--- a/src/fapi
+++ b/src/fapi
@@ -487,8 +487,8 @@ class Fapi(FapiBase):
elif a.sub2 == 'curl':
def curl(f5):
protocol = f5().get_protocol([name])[0]
+ destination = f5().get_destination_v2([name])[0]
if protocol == 'PROTOCOL_TCP':
- destination = f5().get_destination_v2([name])[0]
port = str(destination['port'])
ip = destination['address'].split('/')[-1]
ipport = ip + ':' + port
@@ -500,7 +500,7 @@ class Fapi(FapiBase):
else:
return 'curl -m 3' + headerdump + ' http://' + ipport + failtouch
else:
- return '# ' + protocol + ': Can only curl PROTOCOL_TCP'
+ return '# ' + protocol + ': Can only curl PROTOCOL_TCP. Address: ' + destination['address']
return lambda: curl(f5)
elif a.sub2 == 'status':
return lambda: f5().get_object_status([name])