codify-plugin-lib 1.0.118 → 1.0.119

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.
@@ -98,8 +98,9 @@ export class Plugin {
98
98
  throw new Error('Malformed plan with resource that cannot be found');
99
99
  }
100
100
  await resource.apply(plan);
101
+ // Validate using desired/desired. If the apply was successful, no changes should be reported back
101
102
  const validationPlan = await ptyLocalStorage.run(new BackgroundPty(), async () => {
102
- const result = await resource.plan(plan.desiredConfig, plan.currentConfig, plan.statefulMode);
103
+ const result = await resource.plan(plan.desiredConfig, plan.desiredConfig, plan.statefulMode);
103
104
  await getPty().kill();
104
105
  return result;
105
106
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codify-plugin-lib",
3
- "version": "1.0.118",
3
+ "version": "1.0.119",
4
4
  "description": "Library plugin library",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -151,10 +151,11 @@ export class Plugin {
151
151
 
152
152
  await resource.apply(plan);
153
153
 
154
+ // Validate using desired/desired. If the apply was successful, no changes should be reported back
154
155
  const validationPlan = await ptyLocalStorage.run(new BackgroundPty(), async () => {
155
156
  const result = await resource.plan(
156
157
  plan.desiredConfig,
157
- plan.currentConfig,
158
+ plan.desiredConfig,
158
159
  plan.statefulMode
159
160
  );
160
161