Project

General

Profile

Bug #2374

Updated by Nicolas CHARLES over 12 years ago

Oliver - lkco reported an issue on his version of Rudder (2.3.6) (2.3.4) 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_ENFORCE[0]:false 

 After investigation, the Force the file content value So for some reason, it does not what it should do. 
 He is multivalued, and repeted with each field. However, in the code, the behavior is setted with on 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 centos6 (maybe it's relevant) 

Back