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
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/CACBNComWaMN_oM7Vo8nFMBczxt2LzW5jen__VOqpRr5jrtoFVQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.