Repository: nifi
Updated Branches:
  refs/heads/master daf485557 -> 6916c5363


NIFI-2686: Confusing log No hostnames specified

instanceDefinitions.isEmpty() was negate wrongly.

This closes #965.

Signed-off-by: Andy LoPresto <alopre...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/6916c536
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/6916c536
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/6916c536

Branch: refs/heads/master
Commit: 6916c5363abca7a80d5259155f56403d60099973
Parents: daf4855
Author: Koji Kawamura <ijokaruma...@apache.org>
Authored: Mon Aug 29 14:27:04 2016 +0900
Committer: Andy LoPresto <alopre...@apache.org>
Committed: Mon Aug 29 10:43:11 2016 -0700

----------------------------------------------------------------------
 .../apache/nifi/toolkit/tls/standalone/TlsToolkitStandalone.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nifi/blob/6916c536/nifi-toolkit/nifi-toolkit-tls/src/main/java/org/apache/nifi/toolkit/tls/standalone/TlsToolkitStandalone.java
----------------------------------------------------------------------
diff --git 
a/nifi-toolkit/nifi-toolkit-tls/src/main/java/org/apache/nifi/toolkit/tls/standalone/TlsToolkitStandalone.java
 
b/nifi-toolkit/nifi-toolkit-tls/src/main/java/org/apache/nifi/toolkit/tls/standalone/TlsToolkitStandalone.java
index 5129288..e2726a8 100644
--- 
a/nifi-toolkit/nifi-toolkit-tls/src/main/java/org/apache/nifi/toolkit/tls/standalone/TlsToolkitStandalone.java
+++ 
b/nifi-toolkit/nifi-toolkit-tls/src/main/java/org/apache/nifi/toolkit/tls/standalone/TlsToolkitStandalone.java
@@ -132,7 +132,7 @@ public class TlsToolkitStandalone {
         boolean overwrite = standaloneConfig.isOverwrite();
 
         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.");
         }
         for (InstanceDefinition instanceDefinition : instanceDefinitions) {

Reply via email to