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

cf-promises returns exit code 0 when promises are invalid - Unable to parse class expression

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Unconfirmed
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cf-promises
    • Labels:
      None
    • Platform:
      Any

      Description

      When promises are invalid, due to invalid ifvarclass, cf-promises returns exit code 0

      body common control{
        bundlesequence => { "error" };
      }
      
      bundle agent error {
        vars:
          "some_variable" string => "/foo/bar/baz";
      
        reports:
          "some reports"
            ifvarclass => "${some_variable}";
      }
      
      [root@node3 tmp]# cf-promises -f ./test.cf 
      2014-11-07T08:57:24+0000    error: /default/error/reports: Unable to parse class expression '/foo/bar/baz'
      [root@node3 tmp]# echo $?
      0
      

      This is really unhelpful to test promises automatically

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:

                  Summary Panel