NIFI-2686: Confusing log No hostnames specified

instanceDefinitions.isEmpty() was negate wrongly.

This closes #965.

Signed-off-by: Andy LoPresto <alopresto@apache.org>
This commit is contained in:
Koji Kawamura 2016-08-29 14:27:04 +09:00 committed by Andy LoPresto
parent daf4855570
commit 6916c5363a
No known key found for this signature in database
GPG Key ID: 3C6EF65B2F7DEF69
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ public class TlsToolkitStandalone {
boolean overwrite = standaloneConfig.isOverwrite(); boolean overwrite = standaloneConfig.isOverwrite();
List<InstanceDefinition> instanceDefinitions = standaloneConfig.getInstanceDefinitions(); List<InstanceDefinition> instanceDefinitions = standaloneConfig.getInstanceDefinitions();
if (!instanceDefinitions.isEmpty() && logger.isInfoEnabled()) { if (instanceDefinitions.isEmpty() && logger.isInfoEnabled()) {
logger.info("No " + TlsToolkitStandaloneCommandLine.HOSTNAMES_ARG + " specified, not generating any host certificates or configuration."); logger.info("No " + TlsToolkitStandaloneCommandLine.HOSTNAMES_ARG + " specified, not generating any host certificates or configuration.");
} }
for (InstanceDefinition instanceDefinition : instanceDefinitions) { for (InstanceDefinition instanceDefinition : instanceDefinitions) {