mirror of
https://github.com/gyptazy/ProxLB.git
synced 2026-04-06 04:41:58 +02:00
Merge pull request #120 from gyptazy/fix/119-maintenance-mode-cli-and-config
Fix maintenance mode when using cli arg and config mode by using the merged list.
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
fixed:
|
||||
- Fix maintenance mode when using cli arg and config mode by using the merged list (by @CartCaved). [#119]
|
||||
2
proxlb
2
proxlb
@@ -880,7 +880,7 @@ def balancing_vm_maintenance(proxlb_config, app_args, node_statistics, vm_statis
|
||||
maintenance_nodes_list = maintenance_nodes_list + app_args.maintenance.split(',')
|
||||
|
||||
# Ensure that only existing nodes in the cluster will be used.
|
||||
if len(proxlb_config['vm_maintenance_nodes']) > 1:
|
||||
if len(maintenance_nodes_list) > 1:
|
||||
maintenance_nodes_list = set(maintenance_nodes_list) & set(nodes_present)
|
||||
logging.info(f'{info_prefix} Maintenance mode for the following hosts defined: {maintenance_nodes_list}')
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user