From e0d0c3fce27f48a70a8ea21f605a98303e960cb4 Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Mon, 8 Sep 2014 10:39:26 -0500 Subject: [PATCH] fixed bug, thanks @jwagner --- scripts/f5-config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/f5-config.py b/scripts/f5-config.py index f58f3256da..901bc79592 100755 --- a/scripts/f5-config.py +++ b/scripts/f5-config.py @@ -358,7 +358,7 @@ def main(): node['node_name'] = '%s_NODE_%s' % (PREFIX_NAME, node['hostname']) nodes.append('%s\n' % NODES % node) - virts.append( + virt = ( '%s\n' % VIRTUAL_ENTRIES % { 'port': value['port'], 'vs_name': value['vs_name'], @@ -366,6 +366,8 @@ def main(): 'internal_lb_vip_address': lb_vip_address } ) + if virt not in virts: + virts.append(virt) if value.get('priority') is True: node_data.append(