From 280621e97ed7de337baaff04d20e6049ac913e1b Mon Sep 17 00:00:00 2001 From: "Paul Buetow (lxpbuetow.webde.local)" Date: Mon, 14 Jul 2014 15:20:32 +0200 Subject: add address --- src/fapi | 4 ++-- 1 file 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]) -- cgit v1.2.3