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

Tolerate whitespace before key in manage_variable_values_ini and set_variable_values_ini

    XMLWordPrintable

    Details

      Description

      Currently, this can be managed.

      [section foo]
      key=value
      

      However, if the file looks like this:

      [section bar]
        key=value
      

      then the previous regex would not match.

      What I can get from the INI spec, is that whitespace is optional. This commit
      adds this to the regex, with an optional whitespace match at the beginning of
      the line.

        Attachments

          Activity

            People

            • Assignee:
              a10042 Nick Anderson
              Reporter:
              oleorhagen Ole Petter Orhagen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel