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

days_older_than() in copbl doesn't do what the name would suggest

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.6
    • Component/s: None
    • Labels:
      None

      Description

      https://github.com/cfengine/core/blob/master/masterfiles/libraries/cfengine_stdlib.cf#L2759

      <pre>
      body process_select days_older_than(d)
      {
      stime_range => irange(ago(0,0,"$(d)",0,0,0),now);
      process_result => "stime";
      }
      </pre>

      I believe the @process_result@ should be @!stime@ and not @stime@?
      Now it would match every proc started between @$(d)@ and @now()@.

        Attachments

          Activity

            People

            • Assignee:
              a10042 Nick Anderson
              Reporter:
              terok Tero Kantonen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 hours
                  2h
                  Remaining:
                  Not Specified
                  Logged:
                  Time Not Required
                  Not Specified