diff options
author | James Turnbull <james@lovedthanlost.net> | 2009-07-29 07:46:49 +1000 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-07-29 07:46:49 +1000 |
commit | 389843629c5ec2950f44b0fdaacb1d7470bc4aec (patch) | |
tree | 63ef21ad8a6c28e47c6c4b9887cd26f1602a88fd | |
parent | 9825bec3ad612eb3ec980cbae3a80f611b4a70a0 (diff) | |
download | puppet-389843629c5ec2950f44b0fdaacb1d7470bc4aec.tar.gz puppet-389843629c5ec2950f44b0fdaacb1d7470bc4aec.tar.xz puppet-389843629c5ec2950f44b0fdaacb1d7470bc4aec.zip |
Fixed #2405 - Mount parameter "dump" doesn't accept all valid values on FreeBSD
-rwxr-xr-x | lib/puppet/type/mount.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/puppet/type/mount.rb b/lib/puppet/type/mount.rb index 9cb80b764..fb9a9efed 100755 --- a/lib/puppet/type/mount.rb +++ b/lib/puppet/type/mount.rb @@ -141,9 +141,14 @@ module Puppet newproperty(:dump) do desc "Whether to dump the mount. Not all platforms - support this. Valid values are ``1`` or ``0``. Default is ``0``." ++ support this. Valid values are ``1`` or ``0``. or ``2`` on FreeBSD, Default is ``0``." + if Facter["operatingsystem"].value == "FreeBSD" + newvalue(%r{(0|1|2)}) + else + newvalue(%r{(0|1)}) + end - newvalue(%r{(0|1)}) + newvalue(%r{(0|1)}) defaultto { if @resource.managed? |