Skip to content

Commit

Permalink
Fix some vars from preconfiguration not being added to package polici…
Browse files Browse the repository at this point in the history
…es (elastic#113204) (elastic#113251)

Co-authored-by: Jen Huang <[email protected]>
  • Loading branch information
kibanamachine and jen-huang authored Sep 28, 2021
1 parent d1db27b commit db8b15f
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 @@ -1014,7 +1014,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 db8b15f

Please sign in to comment.