Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-1879

exec_command appended incorrectly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Unconfirmed
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cf-execd
    • Labels:
      None

      Description

      cf-execd blindly appends the exec_command with -Dfrom_cfexed. This does not work unless exec_command ends with cf-agent

      <pre>
      body common control
      {
      bundlesequence =>

      { "main", }

      ;
      }

      body executor control
      {

      exec_command => "( ${sys.cf_agent} && echo foo ) || echo bar";
      }
      bundle agent main
      {
      reports:
      "GO";
      }
      </pre>

      From cf-execd output:
      <pre>
      2015-04-01T10:15:42-0400 Command is executing...( "/home/neil/.cfagent/bin/cf-agent" && echo foo ) || echo bar -Dfrom_cfexecd
      </pre>

        Attachments

          Release management

            Activity

              People

              Assignee:
              a10040 Kristian Amlie
              Reporter:
              neilhwatson Neil Watson
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated: