Skip to content

Commit

Permalink
Fix file name of common policies which are loaded from repository/res…
Browse files Browse the repository at this point in the history
…ources
  • Loading branch information
RusJaI committed Oct 14, 2024
1 parent ad737a9 commit 956acec
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10079,8 +10079,9 @@ public static void loadCommonOperationPolicies(String organization) {
OperationPolicyData policyData = new OperationPolicyData();
policyData.setSpecification(policySpec);
policyData.setOrganization(organization);
//since the directory contains common policies only, files are not renamed with type
String policyFileName = getOperationPolicyFileName(policySpec.getName(),
policySpec.getVersion(), ImportExportConstants.POLICY_TYPE_COMMON);
policySpec.getVersion(), null);
OperationPolicyDefinition synapsePolicyDefinition =
getOperationPolicyDefinitionFromFile(policyDefinitionLocation,
policyFileName, APIConstants.SYNAPSE_POLICY_DEFINITION_EXTENSION);
Expand Down

0 comments on commit 956acec

Please sign in to comment.