-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Labels
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Summary
Resources that support both set and delete does not call the correct operation when _exist is set to false.
I know if I were to create a config doc it would be called correctly but with rapid testing, I just change the payload from creating to deleting by setting the _exist property instead of changing the set to delete.
Steps to reproduce
- Create resource with
setanddeleteoperations and_existcanonical property. - Call
dsc resource setwith(@{ _exist = $false} | ConvertTo-Json)
Expected behavior
The resource is deletedActual behavior
The resource is not deletedError details
Environment data
7.6.0-preview.5Version
dsc 3.2.0-preview.8
Visuals
No response
Gijsreyn and michaeltlombardi