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

"cf-agent -Dclass1 -Dclass2" does not work as expected

    XMLWordPrintable

    Details

      Description

      Whenever cf-agent is executed from cf-runagent, there is a hardcoded "-D cfruncommand" argument passed, that sets the @cfruncommand@ class.

      This class is not set when using
      <pre>cf-runagent -D custom_class</pre>

      This boils down to a cf-agent bug: only the last @-D@ argument is taken into consideration. The previous ones are overwritten (and some memory is leaked because of this as well).

        Attachments

          Release management

            Issue Links

              Activity

                People

                Assignee:
                a10038 jimis (Dimitrios Apostolou)
                Reporter:
                a10038 jimis (Dimitrios Apostolou)
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: