Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-7492

'mount' attribute 'dump' doesn't validate correctly

    XMLWordPrintable

    Details

    • Template:
    • Team:
      Platform OS

      Description

      When specifying the dump attribute, it should only allow 0 or 1 (or 2 on bsd), but it accepts any value that has a 1 or 0 anywhere in the string

      For example, setting it to

        dump => 55555515555,
      

      works just fine, when it shouldn't.

      It looks like the regex used for validation is too permissive in puppet/lib/puppet/type/mount.rb
      link to relavent line #

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            joe.pinsonault Joe Pinsonault
            QA Contact:
            Joe Pinsonault
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support