Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-4423

Deprecation warning for non-string file modes does not show file and line

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: PUP 3.7.4
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Template:
    • Story Points:
      1
    • CS Priority:
      Trivial

      Description

      When a file doesn't use a string for the mode,the error given at run time is:

      Warning: Non-string values for the file mode property are deprecated. It must be a string, either a symbolic mode like 'o+w,a+r' or an octal representation like '0644' or '755'. 
      (at /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/type/file/mode.rb:69:in `block (2 levels) in <module:Puppet>')
      

      This does not provide a file name or line number, which makes it very difficult to track down.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                lee Lee Lowder
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support