Project

General

Profile

Actions

Bug #2374

closed

The policy instance Hosts Management has the variable "Force the file content" multivalued

Added by Nicolas CHARLES over 12 years ago. Updated over 12 years ago.

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

Description

Oliver - lkco reported an issue on his version of Rudder (2.3.6) where he created a policy instance to add entries in his hosts files, but ended up with a cleared hosts files (as it was not expected)
The generated promises are here : http://pastebin.com/0LewURbv
The variables are policyInstanceVariable: HOSTS_ENFORCE0:false

After investigation, the Force the file content value is multivalued, and repeted with each field. However, in the code, the behavior is setted with a stringtemplate comparision, and thus where we expected a Boolean, we had an array, thus failing, thus emptying the file.

The variable HOSTS_ENFORCE should not be in multivalued section, but outside

Actions

Also available in: Atom PDF