Project

General

Profile

Actions

Bug #3432

closed

Duplicate selection of value for variable "execRun" in scope g

Added by Dennis Cabooter about 11 years ago. Updated about 10 years ago.

Status:
Rejected
Priority:
4
Category:
System techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

On all nodes I see the following in syslog:

!! Duplicate selection of value for variable "execRun" in scope g
!! Rule from /var/rudder/cfengine-community/inputs/common/1.0/site.cf at/before line 58

I created the following patch to solve this:

--- /var/rudder/cfengine-community/inputs/common/1.0/site.cf.orig    2013-04-12 11:54:44.345172104 +0200
+++ /var/rudder/cfengine-community/inputs/common/1.0/site.cf    2013-04-12 11:55:12.966302242 +0200
@@ -38,7 +38,8 @@
    "escaped_workdir" string => escape("$(sys.workdir)");

    # The time at which the execution started
-   "execRun" string => execresult("\"${g.rudder_sbin}\getDate.bat\"", "noshell");
+   "execRun" string => execresult("\"${g.rudder_sbin}\getDate.bat\"", "noshell"),
+             policy => "overridable";

  windows.!cygwin::
    "uuid_file" string => "${rudder_base}\etc\uuid.hive";
@@ -55,7 +56,8 @@
     "crontab" string => "/etc/crontab";

     # The time at which the execution started
-    "execRun" string => execresult("/bin/date --rfc-3339=second", "noshell");
+    "execRun" string => execresult("/bin/date --rfc-3339=second", "noshell"),
+              policy => "overridable";

  any::
    "uuid" string => readfile("$(g.uuid_file)", 60);
Actions

Also available in: Atom PDF