Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #9041: Change system promises to call list-compatible-inputs with Rudder version #1039

Conversation

amousset
Copy link
Member

@amousset
Copy link
Member Author

Commit modified

@amousset amousset force-pushed the ust_9041/change_system_promises_to_call_list_compatible_inputs_with_rudder_version branch from 74524bc to 2b5bd76 Compare September 20, 2016 14:00
@amousset
Copy link
Member Author

Commit modified

@amousset amousset force-pushed the ust_9041/change_system_promises_to_call_list_compatible_inputs_with_rudder_version branch from 2b5bd76 to fc5f4fa Compare September 20, 2016 14:08
"path_ncf_local_inputs_40" slist => splitstring(execresult("${list_compatible_inputs} ${sys.cf_version} '${ncf_path}' local/40_it_ops_knowledge", "${shell_type}"), "\n", 10000);
"path_ncf_local_inputs_50" slist => splitstring(execresult("${list_compatible_inputs} ${sys.cf_version} '${ncf_path}' local/50_techniques", "${shell_type}"), "\n", 10000);
"path_ncf_local_inputs_60" slist => splitstring(execresult("${list_compatible_inputs} ${sys.cf_version} '${ncf_path}' local/60_services", "${shell_type}"), "\n", 10000);
"version_data" data => readjson("${rudder_version_file}", 4000);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will fail on a node that has not got a recent rudder-agent (so no rudder_version_file on the filesystem). This can happen if ncf is upgraded on the rudder server, without an agent upgrade - a common scenario.

I think we should protect against this file not existing. (check it exists before trying to read it)

@peckpeck
Copy link
Member

We will use a capability based filter instead

@peckpeck peckpeck closed this Sep 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants