summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/puppet/type/mount.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/puppet/type/mount.rb b/lib/puppet/type/mount.rb
index 517f52632..4ec6d3516 100755
--- a/lib/puppet/type/mount.rb
+++ b/lib/puppet/type/mount.rb
@@ -143,6 +143,14 @@ module Puppet
@doc = "Manages mounted mounts, including putting mount
information into the mount table. The actual behavior depends
on the value of the 'ensure' parameter."
+
+ def value(name)
+ name = symbolize(name)
+ ret = nil
+ if state = @states[name]
+ return state.value
+ end
+ end
end
end