You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
Hi everyone,
currently I'm writing a custom provider to configure mailing lists.
In the provider I'm writing I need to access the list of all
properties (set or unset) defined in the type via 'newproperty'. I'm
wondering if there's a way to do that. It feels strange if there
wouldn't.
What I need to do:
Since upon initial creation of a mailing list not all properties can
be set, I need to put all defined properties into the @property_hash
to have them finally set by the flush method. Therefore I need code
like:
def exists?
... create mailing list...
all_properties_from_type.each { |prop|
@property_hash[prop] = @resource[prop] unless @resource[prop].nil?
}
end
Thanks for any help.
Bye
Frederik
Nan Liu
unread,
Sep 17, 2014, 12:44:25 PM9/17/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
I don't know what your type is called (replace mailing_list with your type name):
FYI, puppet-dev is probably the better mailing list for these questions since the puppet core dev monitor that and would know if the internal API have been updated recently.
Thanks,
Nan
Frederik Wagner
unread,
Sep 18, 2014, 2:43:37 AM9/18/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
Hi Nan,
thanks a lot. That works and gave me the right direction, in the end
one can use:
resource_type.validproperties (or self.class.resource_type.validproperties)