Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ensure parameter with Optional data type #292

Merged
merged 1 commit into from
Jan 11, 2022

Conversation

seanmil
Copy link
Contributor

@seanmil seanmil commented Dec 13, 2021

Add support for specifying the ensure parameter as an
Optional Enum data type.

This permits resource properties of types specified this way
to be managed but only if the resource is already present and
cleanly skipped otherwise.

This is a behavior already present in many traditional Puppet
resource types and this extends the option to the Resource API,
easing transition of existing resource types to the Resource API.

Add support for specifying the ensure parameter as an
Optional Enum data type.

This permits resource properties of types specified this way
to be managed but only if the resource is already present and
cleanly skipped otherwise.

This is a behavior already present in many traditional Puppet
resource types and this extends the option to the Resource API,
easing transition of existing resource types to the Resource API.
@CLAassistant
Copy link

CLAassistant commented Dec 13, 2021

CLA assistant check
All committers have signed the CLA.

@michaeltlombardi
Copy link
Contributor

LGTM! Merging despite the codecov misbehaving.

@michaeltlombardi michaeltlombardi merged commit cef4c86 into puppetlabs:main Jan 11, 2022
seanmil pushed a commit to seanmil/puppet-resource_api that referenced this pull request Jan 11, 2022
Support ensure parameter with Optional data type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants