Puppet: System Administration Automated

Support

Ticket #1212: 0006-added-only-valid-values-for-dump-parameter-in-mount.patch

File 0006-added-only-valid-values-for-dump-parameter-in-mount.patch, 0.8 kB (added by immerda, 7 months ago)

patch to restrict valid values for dump parameter in mount type

  • a/lib/puppet/type/mount.rb

    old new  
    141141 
    142142        newproperty(:dump) do 
    143143            desc "Whether to dump the mount.  Not all platforms 
    144                 support this." 
     144                support this. Valid values are ``1`` or ``0``. Default is ``0``." 
     145 
     146             newvalue(%r{(0|1)}) { } 
    145147 
    146148            defaultto { 
    147149                if @resource.managed?