Skip to content

Commit

Permalink
RANGER-3490 : Make policy resource signature is unique in a service p…
Browse files Browse the repository at this point in the history
…art2

Signed-off-by: pradeep <pradeep@apache.org>
  • Loading branch information
dineshkumar-yadav authored and pradeepagrawal8184 committed Dec 9, 2021
1 parent 00dd3fc commit 6554332
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -121,8 +121,8 @@ boolean isPolicyValidForResourceSignatureComputation() {
LOG.debug("isPolicyValidForResourceSignatureComputation: resources collection on policy was null!");
} else if (_policy.getResources().containsKey(null)) {
LOG.debug("isPolicyValidForResourceSignatureComputation: resources collection has resource with null name!");
} else if (StringUtils.isEmpty(_policy.getGuid())) {
LOG.debug("isPolicyValidForResourceSignatureComputation: policy GUID is empty!");
} else if (!_policy.getIsEnabled() && StringUtils.isEmpty(_policy.getGuid())) {
LOG.debug("isPolicyValidForResourceSignatureComputation: policy GUID is empty for a disabled policy!");
} else {
valid = true;
}
Expand Down

0 comments on commit 6554332

Please sign in to comment.