Skip to content

Commit

Permalink
chore: #XXX fix high findings
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-lcapellino committed Jul 17, 2024
1 parent 565568b commit 1ed3f28
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package org.eclipse.tractusx.traceability.policies.infrastructure;

import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;
import org.eclipse.tractusx.irs.edc.client.policy.Constraint;
import org.eclipse.tractusx.irs.edc.client.policy.Constraints;
import org.eclipse.tractusx.irs.edc.client.policy.Operator;
Expand Down Expand Up @@ -46,7 +47,6 @@
import java.time.ZoneOffset;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.UUID;

import static org.eclipse.tractusx.traceability.common.config.RestTemplateConfiguration.IRS_ADMIN_TEMPLATE;
Expand All @@ -72,8 +72,8 @@ public Map<String, List<IrsPolicyResponse>> getPolicies() {

if (body != null) {
body.forEach((key, valueList) -> {
log.info("Key: {}", key);
valueList.forEach(value -> log.info("Policy: {}", value));
log.info("Key: {}", StringUtils.normalizeSpace(key));
valueList.forEach(value -> log.info("Policy: {}", StringUtils.normalizeSpace(value.toString())));
});
} else {
log.info("No policies retrieved from IRS Policy Store");
Expand Down

0 comments on commit 1ed3f28

Please sign in to comment.