puppetlabs/puppet — pull request #1037 by vrthra (2012-08-15 01:43:36+00:00)
Title: #(8200) solaris validate param path

The parameter :path is changed to a property so that it would be
included in the listing of `puppet resource zone`

We also set :validate => skip on our resource on the instances created
during our self.instances so that these instances can be skipped during
validation. If :validate => :absent is seen, then this is the default
value given to provider.rb{@property_hash} for new instances created.

Thus (say we have a zone z1 and no zone called z2),

`puppet resource zone z1` would have :validate => :skip set. While
`puppet resource zone z2` woudl have :validate => :absent

The above is also true for `zone resource zone` instances
(:validate => :skip for all instances).

We also change setconfig so that it also checks for 'not allowed' This
is because `zonecfg set path=xxx` returns 0 even if it does not set the
value and prints out 'not allowed.'