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 #23347: Improve variable_string_from_command by using execresult_as_data #1406

Conversation

amousset
Copy link
Member

@amousset amousset commented Aug 24, 2023

https://issues.rudder.io/issues/23347

Remove the accumulated cruft that caused multiple bugs and use the "new" execresult_as_data_method, now we don't need compatibility with 6.2 anymore.

Note: Due to https://northerntech.atlassian.net/browse/CFE-4244 I had to re-introduce an ugly hack (a command at the end of the command) to allow our tests to pass (and avoid running into errors when running the same command in different methods).

@amousset amousset requested a review from Fdall August 24, 2023 16:48
@amousset
Copy link
Member Author

PR updated with a new commit

@amousset amousset marked this pull request as draft August 30, 2023 09:48
@amousset
Copy link
Member Author

This does not work when the command comes from the test module, for some reason. We need to figure it out.

@amousset
Copy link
Member Author

PR updated with a new commit

@amousset amousset marked this pull request as ready for review August 31, 2023 13:49
@Normation-Quality-Assistant
Copy link
Contributor

This PR is not mergeable to upper versions.
Since it is "Ready for merge" you must merge it by yourself using the following command:
rudder-dev merge https://github.com/Normation/ncf/pull/1406
-- Your faithful QA
Kant merge: "In law a man is guilty when he violates the rights of others. In ethics he is guilty if he only thinks of doing so."
(https://ci.normation.com/jenkins/job/merge-accepted-pr/73033/console)

@amousset
Copy link
Member Author

OK, squash merging this PR

@amousset amousset force-pushed the arch_23347/improve_variable_string_from_command_by_using_execresult_as_data branch from 5a9c9b1 to 6fd1b61 Compare August 31, 2023 14:11
@amousset amousset merged commit 6fd1b61 into Normation:branches/rudder/8.0 Aug 31, 2023
1 check was pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants