Merge "Owner,Delete files-removing useless assignments"
authorJonathan Gathman <jonathan.gathman@att.com>
Mon, 2 Dec 2019 23:38:35 +0000 (23:38 +0000)
committerGerrit Code Review <gerrit@onap.org>
Mon, 2 Dec 2019 23:38:35 +0000 (23:38 +0000)
auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/ns/Owner.java
auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/perm/Delete.java

index fd43e8d..e93ec05 100644 (file)
@@ -49,7 +49,7 @@ public class Owner extends BaseCmd<NS> {
 
         final int option = whichOption(options, args[idx++]);
         final String ns = args[idx++];
-        final String ids[] = args[idx++].split(",");
+        final String ids[] = args[idx].split(",");
 
         return same(new Retryable<Integer>() {
             @Override
index fc1f936..f53ca4c 100644 (file)
@@ -57,7 +57,7 @@ public class Delete extends Cmd {
                 PermRequest pk = new PermRequest();
                 pk.setType(args[idx++]);
                 pk.setInstance(args[idx++]);
-                pk.setAction(args[idx++]);
+                pk.setAction(args[idx]);
 
                 if(pk.getType().contains("@")) { // User Perm deletion... Must remove from hidden role
                     client.setQueryParams("force");