Project

General

Profile

Actions

Bug #10153

closed

Calling twice file_ensure_key_value_present_in_ini_section for same file and section doesn't do anything for the second call

Added by Nicolas CHARLES almost 8 years ago. Updated over 2 years ago.

Status:
Released
Priority:
1 (highest)
Category:
Generic methods
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

(at least in CFEngine 3.10)
If we call twice file_ensure_key_value_present_in_ini_section, for same file and same section, it won't do anything, because it calls set_variable_values_ini("file_ensure_key_value_present_in_ini_section.content", "${section}")
Since only the content of "file_ensure_key_value_present_in_ini_section.content" changes, and it doesn't deep evaluates it, it won't run it the second time, and so skip the changes silently (verbose output doesn't even mention it)

We need to check all version impacted

Actions

Also available in: Atom PDF