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

(GH-57) Handle datetimes in dsc #58

Merged
merged 1 commit into from
Nov 17, 2020
Merged

(GH-57) Handle datetimes in dsc #58

merged 1 commit into from
Nov 17, 2020

Conversation

michaeltlombardi
Copy link
Contributor

Prior to this commit the dsc_base_provider could not handle DateTime objects from Puppet, having no useful way to format them for PowerShell nor read them back from a Get result.

This commit adds some minor handling to ensure that any datetimes are cast appropriately in the param hash and can be parsed by Puppet if returned.

Prior to this commit the dsc_base_provider could not handle
DateTime objects from Puppet, having no useful way to format
them for PowerShell nor read them back from a Get result.

This commit adds some minor handling to ensure that any
datetimes are cast appropriately in the param hash and can
be parsed by Puppet if returned.

- Fixes #57
@jpogran jpogran merged commit 7ef1752 into puppetlabs:main Nov 17, 2020
@michaeltlombardi michaeltlombardi deleted the gh-57/main/handle-datetime branch February 2, 2021 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The invoke_params method does not handle datetime objects
2 participants