Project

General

Profile

Actions

User story #8169

closed

How to: Ensure a line is present in a file (and only one time!)

User story #8169: How to: Ensure a line is present in a file (and only one time!)

Added by Vincent MEMBRÉ about 10 years ago. Updated almost 10 years ago.

Status:
Released
Priority:
N/A
Category:
Documentation
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

Description

Ensuring there is only one line matching a regexp present in a file is a complicated thing,

If there was only one line, only use a replacement and i'ts ok !

But if there was multiple lines... you'll need to do some magic and we will try to explain it here!

Updated by Vincent MEMBRÉ about 10 years ago Actions #1

  • Status changed from New to In progress

Updated by Vincent MEMBRÉ about 10 years ago Actions #2

  • Status changed from In progress to Pending technical review
  • Assignee changed from Vincent MEMBRÉ to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder-doc/pull/173

Updated by Vincent MEMBRÉ about 10 years ago Actions #3

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100

Updated by Vincent MEMBRÉ almost 10 years ago Actions #4

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.11.21, 3.0.16, 3.1.10 and 3.2.3 which were released on 2016-06-01, but not announced.

Actions

Also available in: PDF Atom