Skip to content

Commit

Permalink
Fix #23772 The create-file-user subcommand with passwordfile option i…
Browse files Browse the repository at this point in the history
…sn't usable in embedded glassfish.

Signed-off-by: kosakak <kosaka.koki@fujitsu.com>
  • Loading branch information
kosakak authored and arjantijms committed Feb 6, 2022
1 parent f0fa5a1 commit c95aeb3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2022 Contributors to the Eclipse Foundation
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -98,7 +99,7 @@ ParameterMap getParameters(String command, String[] args) throws CommandExceptio
if (globalOptions.size() > 0) {
String pwfile = globalOptions.getOne(ProgramOptions.PASSWORDFILE);
if (pwfile != null && pwfile.length() > 0) {
Map<String, String> passwords = CLIUtil.readPasswordFileOptions(pwfile, true);
Map<String, String> passwords = CLIUtil.readPasswordFileOptions(pwfile, false);
for (CommandModel.ParamModel opt : commandModel.getParameters()) {
if (opt.getParam().password()) {
String pwdname = opt.getName();
Expand Down

0 comments on commit c95aeb3

Please sign in to comment.