accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1444075 - /accumulo/trunk/core/src/main/java/org/apache/accumulo/core/util/shell/commands/ConfigCommand.java
Date Fri, 08 Feb 2013 15:34:21 GMT
Author: ecn
Date: Fri Feb  8 15:34:21 2013
New Revision: 1444075

URL: http://svn.apache.org/r1444075
Log:
ACCUMULO-114 hide the tracer password if it is not set to the default

Modified:
    accumulo/trunk/core/src/main/java/org/apache/accumulo/core/util/shell/commands/ConfigCommand.java

Modified: accumulo/trunk/core/src/main/java/org/apache/accumulo/core/util/shell/commands/ConfigCommand.java
URL: http://svn.apache.org/viewvc/accumulo/trunk/core/src/main/java/org/apache/accumulo/core/util/shell/commands/ConfigCommand.java?rev=1444075&r1=1444074&r2=1444075&view=diff
==============================================================================
--- accumulo/trunk/core/src/main/java/org/apache/accumulo/core/util/shell/commands/ConfigCommand.java
(original)
+++ accumulo/trunk/core/src/main/java/org/apache/accumulo/core/util/shell/commands/ConfigCommand.java
Fri Feb  8 15:34:21 2013
@@ -165,14 +165,14 @@ public class ConfigCommand extends Comma
         if (tableName != null && !Property.isValidTablePropertyKey(key)) {
           continue;
         }
-        final String siteVal = siteConfig.get(key);
-        final String sysVal = systemConfig.get(key);
+        String siteVal = siteConfig.get(key);
+        String sysVal = systemConfig.get(key);
         String curVal = propEntry.getValue();
         String dfault = defaults.get(key);
         boolean printed = false;
         
         if (dfault != null && key.toLowerCase().contains("password")) {
-          dfault = curVal = curVal.replaceAll(".", "*");
+          siteVal = sysVal = dfault = curVal = curVal.replaceAll(".", "*");
         }
         if (sysVal != null) {
           if (defaults.containsKey(key)) {



Mime
View raw message