warpnet / salt-lint

A command-line utility that checks for best practices in SaltStack.
https://salt-lint.readthedocs.io/en/latest/
MIT License
152 stars 39 forks source link

fix: octal rule triggers on time format #293

Closed nicholasmhughes closed 1 year ago

nicholasmhughes commented 1 year ago

Time values such as this:

some_calendar_entry:
  file.managed:
    - name: /tmp/my_unit_file
    - contents: |
        OnCalendar=Sun 18:00

should not trigger this rule.

Changed the regex to accommodate this case while still catching/ignoring previous identified test cases

roaldnefs commented 1 year ago

Thanks @nicholasmhughes for your contribution!