Ensure instance list exists before using it
@@ -4921,12 +4921,10 @@ HOSTS
return
end
- unless zk_instances.empty?
@app_info_map[version_key] = {} unless @app_info_map.key?(version_key)
unless @app_info_map[version_key].key?('appservers')
@app_info_map[version_key]['appservers'] = []
end
- end
known_instances = @app_info_map[version_key]['appservers']
# Replace instance assignments with any new registered instances.
