In zone terminology a dataset refers to a ZFS file system delegated to a 
non-global zone.  This patch allows for the zone provider to natively manage 
datasets and removes the need for an exec to perform the function.

Signed-off-by: Derek Olsen <[email protected]>
---
 lib/puppet/provider/zone/solaris.rb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/puppet/provider/zone/solaris.rb 
b/lib/puppet/provider/zone/solaris.rb
index f3c261f..38ac50f 100644
--- a/lib/puppet/provider/zone/solaris.rb
+++ b/lib/puppet/provider/zone/solaris.rb
@@ -221,8 +221,8 @@ Puppet::Type.type(:zone).provide(:solaris) do
     if dir = config["inherit-pkg-dir"]
       result[:inherit] = dir.collect { |dirs| dirs[:dir] }
     end
-    if dataset = config["dataset"]
-      result[:dataset] = dataset.collect { |datasets| datasets[:dataset] }
+    if name = config["dataset"]
+      result[:dataset] = name.collect { |names| names[:name] }
     end
     result[:iptype] = config[:"ip-type"]
     if net = config["net"]
-- 
1.7.3.2

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to