summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastian Cabrera <Sebastian.Cabrera@1und1.de>2014-05-23 14:33:28 +0200
committerSebastian Cabrera <Sebastian.Cabrera@1und1.de>2014-05-23 14:33:28 +0200
commita5a2f3c0194452d76796045289d47c25d180ecae (patch)
tree3de61cbfe6453a288c107a12e8078e877c8b2c8a /src
parent7cf953e6584439046fd241da366f1fb672cf374d (diff)
BUGFIX for pool creation
* you need to split on a.sub2 instead of sub3 to pass nodes on pool creation
Diffstat (limited to 'src')
-rwxr-xr-xsrc/fapi4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fapi b/src/fapi
index 00c92e0..7e801cc 100755
--- a/src/fapi
+++ b/src/fapi
@@ -298,8 +298,8 @@ class Fapi(object):
elif a.sub == 'create':
poolmembers = []
method = 'LB_METHOD_ROUND_ROBIN'
- if a.sub3:
- for x in a.sub3.split(','):
+ if a.sub2:
+ for x in a.sub2.split(','):
fqdn_or_ip, ip, port = self.lookup(x)
pm = { 'address' : fqdn_or_ip, 'port' : port }
poolmembers.append(pm)