Skip to content

Commit

Permalink
Merge pull request #2518 from jfdenise/WFCORE-2926
Browse files Browse the repository at this point in the history
Fix for WFCORE-2926. Disable error-on-interract for CLI.connect.
  • Loading branch information
bstansberry committed Jun 13, 2017
2 parents 9ec9bbc + 489e857 commit 2339b24
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions cli/src/main/java/org/jboss/as/cli/scriptsupport/CLI.java
Expand Up @@ -80,7 +80,10 @@ public CommandContext getCommandContext() {
*/
public void connect() {
doConnect(() -> {
return CommandContextFactory.getInstance().newCommandContext();
return CommandContextFactory.getInstance().
newCommandContext(new CommandContextConfiguration.Builder()
.setErrorOnInteract(false)
.build());
});
}

Expand All @@ -93,7 +96,11 @@ public void connect() {
public void connect(String username, char[] password) {
doConnect(() -> {
return CommandContextFactory.getInstance().
newCommandContext(username, password);
newCommandContext(new CommandContextConfiguration.Builder()
.setUsername(username)
.setPassword(password)
.setErrorOnInteract(false)
.build());
});
}

Expand Down Expand Up @@ -125,6 +132,7 @@ public void connect(String controller, String username, char[] password,
.setController(controller)
.setUsername(username)
.setPassword(password)
.setErrorOnInteract(false)
.setClientBindAddress(clientBindAddress)
.build());
});
Expand Down Expand Up @@ -190,6 +198,7 @@ public void connect(String protocol, String controllerHost, int controllerPort,
controllerPort))
.setUsername(username)
.setPassword(password)
.setErrorOnInteract(false)
.setClientBindAddress(clientBindAddress)
.build());
});
Expand Down

0 comments on commit 2339b24

Please sign in to comment.