Skip to content

Commit

Permalink
[apache#5960] fix(CLI): Add register and link commands to CLI for model
Browse files Browse the repository at this point in the history
Fix some error.
  • Loading branch information
Abyss-lord committed Jan 3, 2025
1 parent a0fe9a2 commit 30ed52b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1180,8 +1180,6 @@ private void handleModelCommand() {
}

String model = name.getModelName();
String[] alias = line.getOptionValues(GravitinoOptions.ALIAS);
String uri = line.getOptionValue(GravitinoOptions.URI);
if (model == null) missingEntities.add(CommandEntities.MODEL);
checkEntities(missingEntities);

Expand All @@ -1204,6 +1202,8 @@ private void handleModelCommand() {
break;

case CommandActions.UPDATE:
String[] alias = line.getOptionValues(GravitinoOptions.ALIAS);
String uri = line.getOptionValue(GravitinoOptions.URI);
if (uri == null) {
System.err.println(ErrorMessages.MISSING_URI);
Main.exit(-1);
Expand Down

0 comments on commit 30ed52b

Please sign in to comment.