Actions
Bug #15174
closedRudder directives posthook can not support multilines command execution
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
Description
Posthook can only execute one bash command, but this command should be able to be multiline.
Due to the spacing in the technique file, and how string_template replaces the parameters, the resulting spacing is broken and add unwanted spaces in the posthook when dealing with multiline ones.
We should fix the spacing in all directives using posthooks
Updated by Félix DALLIDET over 5 years ago
- Status changed from New to In progress
- Assignee set to Félix DALLIDET
Updated by Félix DALLIDET over 5 years ago
- Related to Bug #8933: Multi-line command in post-modification hooks works incorrectly added
Updated by Félix DALLIDET over 5 years ago
Below are the techniques that offers POSTHOOK options:
grep -Rl "HOOK" | grep xml ~> 17:02 fileDistribution/checkGenericFileContent/8.0/metadata.xml fileDistribution/manageKeyValueFile/1.3/metadata.xml fileDistribution/fileTemplate/1.0/metadata.xml fileDistribution/copyGitFile/2.3/metadata.xml applications/repoGpgKeyManagement/1.1/metadata.xml applications/packageManagement/1.2/metadata.xml fileConfiguration/fileManagement/4.1/metadata.xml systemSettings/remoteAccess/sshKeyDistribution/4.0/metadata.xml systemSettings/process/services/1.1/metadata.xml systemSettings/userManagement/sudoParameters/3.2/metadata.xml systemSettings/systemManagement/cronManagement/3.2/metadata.xml
Updated by Félix DALLIDET over 5 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Félix DALLIDET to Nicolas CHARLES
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/1458
Updated by Félix DALLIDET over 5 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-techniques|995a62dda7f9b3f950abeea0af50fbd56ef8b353.
Updated by Nicolas CHARLES about 5 years ago
- Fix check changed from To do to Checked
Updated by Vincent MEMBRÉ about 5 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 5.0.13 which was released today.
Actions