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 #17141: when we add a multiline description in Technique, it breaks policy generation and technique loading #2902

Conversation

VinceMacBuche
Copy link
Member

@VinceMacBuche VinceMacBuche requested a review from fanf April 16, 2020 17:38
@@ -354,7 +354,7 @@ class ClassicTechniqueWriter(basePath : String, parameterTypeService: ParameterT

val content =
s"""# @name ${technique.name}
|# @description ${technique.description}
|# @description ${technique.description.split("\n").mkString("\n# ")}
Copy link
Member

Choose a reason for hiding this comment

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

why not replaceAll ?

Copy link
Member

Choose a reason for hiding this comment

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

and perhaps [\n\r]{1,2} ? Not sure what browser on windows do?

Copy link
Member

Choose a reason for hiding this comment

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

@VinceMacBuche
Copy link
Member Author

PR updated with a new commit

@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/rudder/pull/2902
-- Your faithful QA
Kant merge: "To be is to do."
(https://ci.normation.com/jenkins/job/merge-accepted-pr/23100/console)

@VinceMacBuche
Copy link
Member Author

OK, squash merging this PR

…eaks policy generation and technique loading
@VinceMacBuche VinceMacBuche force-pushed the bug_17141/when_we_add_a_multiline_description_in_technique_it_breaks_policy_generation_and_technique_loading branch from eea3edb to 97af16e Compare April 16, 2020 20:08
@VinceMacBuche VinceMacBuche merged commit 97af16e into Normation:branches/rudder/6.0 Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants