Hans,

On Sep 2, 7:21 pm, Hans van der Made <chitchat...@gmail.com> wrote:

> err: //Node[nodename]/v20z-base-zfs/Zfs[rpool/export/home]/ensure:
> change from present to absent failed: Could not set absent on ensure:
> undefined method `destroy' for #<Puppet::Type::Zfs:0x8e0db54> at
> /path/v20z-base-zfs/manifests/init.pp:31
>
This looks like a bug :)

> The online type reference says "ensure" supports "absent" and "present"
> for the ZFS type, and "provider/zfs/solaris.rb" suggests that deletion
> should work as well:
>
>      def create
>          zfs *([:create] + add_properties + [...@resource[:name]])
>      end
>
>      def delete
>          zfs(:destroy, @resource[:name])
>      end
>
It is calling destroy(), but it isn't defined. Rename "def delete" to
"def destroy" and it should work - I'll file a bug...

cheers,
/Martin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to