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

Module protocol does not support empty list

    XMLWordPrintable

    Details

      Description

      Module protocol does not support empty list

      body common control {
          bundlesequence => { "test_module_protocol_accepts_empty_list" };
      }
      
      bundle agent test_module_protocol_accepts_empty_list {
        classes:
            "is_empty" not => some(".*", "echo.mylist");
      
        commands:
            "/bin/echo '@mylist={}'" module => "true";
      
        reports:
          is_empty::
            "PASS";
          !is_empty::
            "FAIL";
      }
      

      Expected output:

      PASS
      

      Actual output:

      2014-11-26T11:12:17+0000    error: /default/test_module_protocol_accepts_empty_list/commands/'/bin/echo '@mylist={}''[0]: Parsing error : Malformed string (unexpected end of input)
      2014-11-26T11:12:17+0000    error: /default/test_module_protocol_accepts_empty_list/commands/'/bin/echo '@mylist={}''[0]: Module protocol could not parse variable mylist's data content {}
      R: FAIL
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              naksu Mr Naksu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: