natural commented on a change in pull request #3542: NIFI-6363 Integrates AWS
KMS SPP. Refactors SSPP.
URL: https://github.com/apache/nifi/pull/3542#discussion_r297296598
##########
File path:
nifi-toolkit/nifi-toolkit-encrypt-config/src/main/groovy/org/apache/nifi/properties/ConfigEncryptionTool.groovy
##########
@@ -1091,7 +1095,7 @@ class ConfigEncryptionTool {
encryptedProperties.setProperty(key,
plainProperties.getProperty(key))
}
NiFiProperties mergedProperties = new
StandardNiFiProperties(encryptedProperties)
- logger.info("Final result: ${mergedProperties.size()} keys including
${ProtectedNiFiProperties.countProtectedProperties(mergedProperties)} protected
keys")
+ logger.info("Final result: ${mergedProperties.size()} keys including
${ProtectedNiFiProperties.countProtectedProperties(mergedProperties, keyHex)}
protected keys")
Review comment:
I removed the unnecessary key parameter; the method passes an empty string
along to the ctor, which produces a null SPP, which provides the count as
expected.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services