Bug #15174
closed
Rudder directives posthook can not support multilines command execution
Added by Félix DALLIDET over 5 years ago.
Updated about 5 years ago.
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
- Status changed from New to In progress
- Assignee set to Félix DALLIDET
- Related to Bug #8933: Multi-line command in post-modification hooks works incorrectly added
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
- 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
- Status changed from Pending technical review to Pending release
- Fix check changed from To do to Checked
- Status changed from Pending release to Released
This bug has been fixed in Rudder 5.0.13 which was released today.
Also available in: Atom
PDF