Skip to content

Commit

Permalink
Don't auto upgrade policies for AUTO_UPDATE packages
Browse files Browse the repository at this point in the history
  • Loading branch information
kpollich committed Oct 15, 2021
1 parent a41cee1 commit f7dba3b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ export const upgradeManagedPackagePolicies = async (
packageInfo.version === installedPackage?.version;

const shouldUpgradePolicies =
!isPolicyVersionAlignedWithInstalledVersion &&
(AUTO_UPDATE_PACKAGES.some((pkg) => pkg.name === packageInfo.name) ||
packageInfo.keepPoliciesUpToDate);
!isPolicyVersionAlignedWithInstalledVersion && packageInfo.keepPoliciesUpToDate;

if (shouldUpgradePolicies) {
// Since upgrades don't report diffs/errors, we need to perform a dry run first in order
Expand Down

0 comments on commit f7dba3b

Please sign in to comment.