refactor(upgrade): Trim upgrade name before executing (#7343)

This commit is contained in:
John Joyce 2023-02-15 08:59:06 -08:00 committed by GitHub
parent 372f673aef
commit 32b55e7caa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,7 @@ public class UpgradeCli implements CommandLineRunner {
final Args args = new Args();
new CommandLine(args).setCaseInsensitiveEnumValuesAllowed(true).parseArgs(cmdLineArgs);
UpgradeResult result = _upgradeManager.execute(args.upgradeId, args.args);
UpgradeResult result = _upgradeManager.execute(args.upgradeId.trim(), args.args);
if (UpgradeResult.Result.FAILED.equals(result.result())) {
System.exit(1);