Skip to content

Commit

Permalink
Fix some vars from preconfiguration not being added to package policies
Browse files Browse the repository at this point in the history
  • Loading branch information
jen-huang committed Sep 27, 2021
1 parent de43a3b commit 4cbd5f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/fleet/server/services/package_policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ function deepMergeVars(original: any, override: any): any {

for (const { name, ...overrideVal } of overrideVars) {
const originalVar = original.vars[name];
result.vars[name] = { ...overrideVal, ...originalVar };
result.vars[name] = { ...originalVar, ...overrideVal };
}

return result;
Expand Down

0 comments on commit 4cbd5f3

Please sign in to comment.