Skip to content

Commit

Permalink
checksum-module: add missing map to JSON info
Browse files Browse the repository at this point in the history
Motivation:

The policies map should be added to the JSON info object
returned for checksum module information.

Modification:

Add it.

Result:

JSON object data is complete.

Target: master
Request: 7.1
Request: 7.0
Request: 6.2
Patch: https://rb.dcache.org/r/13071/
Acked-by: Lea
  • Loading branch information
alrossi committed Jun 9, 2021
1 parent dae6e78 commit e161cb2
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -187,6 +187,7 @@ public synchronized ChecksumModuleData getDataObject() {
Map<String, String> policies = new HashMap<>();
_policy.stream().forEach((p) -> policies.put(p.name(), getPolicy(p)));
policies.put(ON_TRANSFER.name(), "on");
info.setPolicies(policies);
if (hasPolicy(SCRUB)) {
if (!Double.isInfinite(_throughputLimit)) {
info.setThroughputLimitInMibPerSec(BYTES.toMiB(_throughputLimit));
Expand Down

0 comments on commit e161cb2

Please sign in to comment.