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

When ifelapsed is set at 0, the lock default to 3 minutes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: (None)
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:

      Description

      In 3.5.3 (not in 3.5.3), if the body agent control defines ifelapsed to 0, the locks on insertion default to 3 minutes

      Running the following promises:
      <pre>
      body common control {
      bundlesequence =>

      { "test" }

      ;
      }

      body agent control {
      ifelapsed => "0";
      }

      bundle agent test {
      files:
      "/tmp/insert"
      edit_line => my_insert;
      }

      bundle edit_line my_insert
      {
      insert_lines:
      "test";
      }
      </pre>

      twice cause the following output in legacy verbose mode:
      <pre>
      cf3> XX Nothing promised here [last.my_insert.insert_lines.-squeeze64.i] (0/3 minutes elapsed)
      </pre>

      Note that it didn't happen in 3.5.2, and I could not figure out the cause of this change in the diff.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ncharles Nicolas Charles
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: