ARTEMIS-304 Prompt for role when creating instance

This commit is contained in:
jbertram 2015-11-17 10:01:10 -06:00
parent 5b824e1bcf
commit 570ee53d6c
1 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ public class Create extends InputAbstract {
@Option(name = "--password", description = "The user's password (Default: input)") @Option(name = "--password", description = "The user's password (Default: input)")
String password; String password;
@Option(name = "--role", description = "The name for the role created (Default: amq)") @Option(name = "--role", description = "The name for the role created (Default: input)")
String role; String role;
@Option(name = "--no-web", description = "This will remove the web server definition from bootstrap.xml") @Option(name = "--no-web", description = "This will remove the web server definition from bootstrap.xml")
@ -370,7 +370,7 @@ public class Create extends InputAbstract {
public String getRole() { public String getRole() {
if (role == null) { if (role == null) {
role = "amq"; role = input("--role", "Please provide the default role:", "amq");
} }
return role; return role;
} }