Project

General

Profile

Bug #15029

It's not possible to use $(match.o) anymore in directives/techniques

Added by Nicolas CHARLES 5 months ago. Updated 2 months ago.

Status:
Released
Priority:
N/A
Category:
Techniques
Target version:
Severity:
User visibility:
Effort required:
Priority:
0

Description

Trying to use ${match.x} in check generic file content for line replacement
Agent replaced the line with empty text, because it didn't detect the replacement variable as defined (replace_lines_destination_defined is not defined)
so it replaces with empty text

Associated revisions

Revision 69924894 (diff)
Added by Félix DALLIDET 4 months ago

Fixes #15029: It's not possible to use $(match.o) anymore in directives/techniques

History

#1

Updated by Vincent MEMBRÉ 4 months ago

  • Target version changed from 5.0.12 to 5.0.13
#2

Updated by Alexis MOUSSET 4 months ago

Note: The file_lines_replace method works as a workaround.

#3

Updated by Alexis MOUSSET 4 months ago

  • Category changed from Agent to Techniques

As the method work, it is problably not an agent problem, but a bug in the technique.

#4

Updated by Félix DALLIDET 4 months ago

  • Status changed from New to In progress
  • Assignee set to Félix DALLIDET
#5

Updated by Félix DALLIDET 4 months 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/1460
#7

Updated by Félix DALLIDET 4 months ago

  • Status changed from Pending technical review to Pending release
#10

Updated by Vincent MEMBRÉ 2 months ago

  • 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