fixed bug, thanks @jwagner
This commit is contained in:
parent
09ed428bb6
commit
e0d0c3fce2
@ -358,7 +358,7 @@ def main():
|
|||||||
node['node_name'] = '%s_NODE_%s' % (PREFIX_NAME, node['hostname'])
|
node['node_name'] = '%s_NODE_%s' % (PREFIX_NAME, node['hostname'])
|
||||||
nodes.append('%s\n' % NODES % node)
|
nodes.append('%s\n' % NODES % node)
|
||||||
|
|
||||||
virts.append(
|
virt = (
|
||||||
'%s\n' % VIRTUAL_ENTRIES % {
|
'%s\n' % VIRTUAL_ENTRIES % {
|
||||||
'port': value['port'],
|
'port': value['port'],
|
||||||
'vs_name': value['vs_name'],
|
'vs_name': value['vs_name'],
|
||||||
@ -366,6 +366,8 @@ def main():
|
|||||||
'internal_lb_vip_address': lb_vip_address
|
'internal_lb_vip_address': lb_vip_address
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
if virt not in virts:
|
||||||
|
virts.append(virt)
|
||||||
|
|
||||||
if value.get('priority') is True:
|
if value.get('priority') is True:
|
||||||
node_data.append(
|
node_data.append(
|
||||||
|
Loading…
Reference in New Issue
Block a user