Project

General

Profile

User story #8169

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

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

Status:
Released
Priority:
N/A
Category:
Documentation
Target version:
Suggestion strength:
User visibility:
Effort required:

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!

#1

Updated by Vincent MEMBRÉ about 4 years ago

  • Status changed from New to In progress
#2

Updated by Vincent MEMBRÉ about 4 years ago

  • 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
#3

Updated by Vincent MEMBRÉ about 4 years ago

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

Updated by Vincent MEMBRÉ almost 4 years ago

  • 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.

Also available in: Atom PDF