Skip to content

Commit

Permalink
fix(compartment-mapper): policy - allow any packages imported in the …
Browse files Browse the repository at this point in the history
…attenuators compartment
  • Loading branch information
naugtur committed Nov 2, 2023
1 parent 7fd98cc commit 8ad2406
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/compartment-mapper/src/policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,7 @@ export const getPolicyForPackage = (namingKit, policy) => {
if (canonicalName === ATTENUATORS_COMPARTMENT) {
return {
defaultAttenuator: policy.defaultAttenuator,
packages: detectAttenuators(policy).reduce((packages, specifier) => {
packages[specifier] = true;
return packages;
}, {}),
packages: 'any',
};
}
if (policy.resources && policy.resources[canonicalName]) {
Expand Down

0 comments on commit 8ad2406

Please sign in to comment.