codify-plugin-lib 1.0.156 → 1.0.157
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/plan/plan.js +2 -2
- package/package.json +1 -1
- package/src/plan/plan.ts +2 -2
package/dist/plan/plan.js
CHANGED
|
@@ -189,8 +189,8 @@ export class Plan {
|
|
|
189
189
|
return null;
|
|
190
190
|
}
|
|
191
191
|
// For stateful mode, we're done after filtering by the keys of desired + state. Stateless mode
|
|
192
|
-
// requires additional filtering for stateful parameter arrays and objects.
|
|
193
|
-
if (isStateful) {
|
|
192
|
+
// requires additional filtering for stateful parameter arrays and objects. Use this for stateful destroys as well.
|
|
193
|
+
if (isStateful && desired !== null) {
|
|
194
194
|
return filteredCurrent;
|
|
195
195
|
}
|
|
196
196
|
// TODO: Add object handling here in addition to arrays in the future
|
package/package.json
CHANGED
package/src/plan/plan.ts
CHANGED
|
@@ -312,8 +312,8 @@ export class Plan<T extends StringIndexedObject> {
|
|
|
312
312
|
}
|
|
313
313
|
|
|
314
314
|
// For stateful mode, we're done after filtering by the keys of desired + state. Stateless mode
|
|
315
|
-
// requires additional filtering for stateful parameter arrays and objects.
|
|
316
|
-
if (isStateful) {
|
|
315
|
+
// requires additional filtering for stateful parameter arrays and objects. Use this for stateful destroys as well.
|
|
316
|
+
if (isStateful && desired !== null) {
|
|
317
317
|
return filteredCurrent;
|
|
318
318
|
}
|
|
319
319
|
|