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

warning: Keeping verbatim unrecognised JSON escape

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.10.0, 3.9.1, 3.7.5
    • Component/s: None
    • Labels:
      None
    • Platform:
      Windows, Linux

      Description

      Please make these warnings go away or at least go to verbose.

      body common control
      {
              bundlesequence => { "main", };
      }
      
      bundle agent main
      {
         vars:
            "d" data => parsejson('
      [
         {
            "expression" : "\Qvm.swappiness = 60\E",
         }
      ]');
      
         classes:
            "swappiness_is_60"
               expression => regcmp( ${d[0][expression]}, "vm.swappiness = 60" );
      
            "swappiness_is_not_60"
               not => regcmp( ${d[0][expression]}, "vm.swappiness = 60" );
      
         reports:
            "regex is ${d[0][expression]}";
            swappiness_is_60::
               "ok 1 - swappiness is 60";
            swappiness_is_not_60::
               "not ok 1 - swappiness is 60";
      }
      
      
       warning: Keeping verbatim unrecognised JSON escape '\Qvm.s'
       warning: Keeping verbatim unrecognised JSON escape '\E",
       '
       warning: Keeping verbatim unrecognised JSON escape '\Qvm.s'
       warning: Keeping verbatim unrecognised JSON escape '\E",
       '
       warning: Keeping verbatim unrecognised JSON escape '\Qvm.s'
       warning: Keeping verbatim unrecognised JSON escape '\E",
       '
       warning: Keeping verbatim unrecognised JSON escape '\Qvm.s'
       warning: Keeping verbatim unrecognised JSON escape '\E",
       '
       warning: Keeping verbatim unrecognised JSON escape '\Qvm.s'
       warning: Keeping verbatim unrecognised JSON escape '\E",
       '
       warning: Keeping verbatim unrecognised JSON escape '\Qvm.s'
       warning: Keeping verbatim unrecognised JSON escape '\E",
       '
       warning: Keeping verbatim unrecognised JSON escape '\Qvm.s'
       warning: Keeping verbatim unrecognised JSON escape '\E",
       '
       warning: Keeping verbatim unrecognised JSON escape '\Qvm.s'
       warning: Keeping verbatim unrecognised JSON escape '\E",
       '
      R: regex is \Qvm.swappiness = 60\E
      R: ok 1 - swappiness is 60
       warning: Keeping verbatim unrecognised JSON escape '\Qvm.s'
       warning: Keeping verbatim unrecognised JSON escape '\E",
       '
       warning: Keeping verbatim unrecognised JSON escape '\Qvm.s'
       warning: Keeping verbatim unrecognised JSON escape '\E",
       '
       warning: Keeping verbatim unrecognised JSON escape '\Qvm.s'
       warning: Keeping verbatim unrecognised JSON escape '\E",
       '
       warning: Keeping verbatim unrecognised JSON escape '\Qvm.s'
       warning: Keeping verbatim unrecognised JSON escape '\E",
       ' 
      

        Attachments

          Activity

            People

            • Assignee:
              a10003 Eystein Maloy Stenberg
              Reporter:
              neilhwatson Neil Watson
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel