summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow (lxpbuetow.webde.local) <paul.buetow@1und1.de>2014-07-07 15:22:40 +0200
committerPaul Buetow (lxpbuetow.webde.local) <paul.buetow@1und1.de>2014-07-07 15:22:40 +0200
commit04afd66cfe089e727a5832f586ce78bfc0167e8a (patch)
tree8debdc3815ac1b4abb084c3d99911ca10413ab44
parent095171d70c4e3359c19f55a5d46e6f275e169e10 (diff)
fix
-rwxr-xr-xsrc/fapi16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/fapi b/src/fapi
index 765058b..1db236f 100755
--- a/src/fapi
+++ b/src/fapi
@@ -420,17 +420,17 @@ class Fapi(FapiBase):
a = self._args
if not a.name:
return lambda: f5().get_list()
- # Check for Pattern like /partition/foo-bar.example.com_443
- m = re.match('^(.*)_(\d+)$', a.name)
- if m:
- fqdn_or_ip = m.group(1)
- port = m.group(2)
- _, ip, _ = self.lookup(fqdn_or_ip)
- else:
- fqdn_or_ip, ip, port = self.lookup(a.name)
if a.a:
name = a.name
else:
+ # Check for Pattern like /partition/foo-bar.example.com_443
+ m = re.match('^(.*)_(\d+)$', a.name)
+ if m:
+ fqdn_or_ip = m.group(1)
+ port = m.group(2)
+ _, ip, _ = self.lookup(fqdn_or_ip)
+ else:
+ fqdn_or_ip, ip, port = self.lookup(a.name)
name = fqdn_or_ip + '_' + port
if a.sub == 'get':
if a.sub2 == 'detail':