Author: kturner
Date: Tue Feb 12 18:07:37 2013
New Revision: 1445292

URL: http://svn.apache.org/r1445292
Log:
ACCUMULO-1057 applied patch from Damon A Brown

Modified:
    
accumulo/trunk/server/src/main/java/org/apache/accumulo/server/util/ChangeSecret.java

Modified: 
accumulo/trunk/server/src/main/java/org/apache/accumulo/server/util/ChangeSecret.java
URL: 
http://svn.apache.org/viewvc/accumulo/trunk/server/src/main/java/org/apache/accumulo/server/util/ChangeSecret.java?rev=1445292&r1=1445291&r2=1445292&view=diff
==============================================================================
--- 
accumulo/trunk/server/src/main/java/org/apache/accumulo/server/util/ChangeSecret.java
 (original)
+++ 
accumulo/trunk/server/src/main/java/org/apache/accumulo/server/util/ChangeSecret.java
 Tue Feb 12 18:07:37 2013
@@ -51,9 +51,10 @@ public class ChangeSecret {
   
   public static void main(String[] args) throws Exception {
     Opts opts = new Opts();
-    List<String> argsList = Arrays.asList(args);
+    List<String> argsList = new ArrayList<String>(args.length + 2);
     argsList.add("--old");
     argsList.add("--new");
+    argsList.addAll(Arrays.asList(args));
     opts.parseArgs(ChangeSecret.class.getName(), argsList.toArray(new 
String[0]));
     FileSystem fs = FileSystem.get(CachedConfiguration.getInstance());
     Instance inst = opts.getInstance();


Reply via email to