You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When passing a datetime string in a hash to Invoke-DscResource it fails with the following message:
Could not evaluate: Convert property 'starttime' value from type 'STRING' to type 'DATETIME' failed
This is caused by the failure of implicit casting, similar to what happens with empty arrays (see #55 for more details). Special handling should be added to the handler, as with PSCredential objects, since the value in the manifest is a string.
Expected Behavior
When a datetime parameter is specified in a manifest it does not cause casting errors when passed to Invoke-DscResource.
Describe the Bug
When passing a datetime string in a hash to
Invoke-DscResource
it fails with the following message:This is caused by the failure of implicit casting, similar to what happens with empty arrays (see #55 for more details). Special handling should be added to the handler, as with PSCredential objects, since the value in the manifest is a string.
Expected Behavior
When a datetime parameter is specified in a manifest it does not cause casting errors when passed to
Invoke-DscResource
.Steps to Reproduce
Suggested Fix
Similar to the handling for empty arrays:
The text was updated successfully, but these errors were encountered: