Skip to content

Commit

Permalink
[#5825] improvement(CLI): Update the entity name
Browse files Browse the repository at this point in the history
Use CommandEntities replace MetadataObject.Type
  • Loading branch information
Abyss-lord committed Dec 16, 2024
1 parent 2cbcf1d commit 98b3904
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.HelpFormatter;
import org.apache.commons.cli.Options;
import org.apache.gravitino.MetadataObject;
import org.apache.gravitino.cli.commands.Command;

/* Gravitino Command line */
Expand Down Expand Up @@ -177,7 +176,7 @@ private void handleMetalakeCommand() {
newListMetalakes(url, ignore, outputFormat).handle();
} else if (CommandActions.CREATE.equals(command)) {
if (Objects.isNull(metalake)) {
System.err.println("! " + MetadataObject.Type.METALAKE.name() + " is not defined");
System.err.println("! " + CommandEntities.METALAKE + " is not defined");
return;
}
String comment = line.getOptionValue(GravitinoOptions.COMMENT);
Expand Down

0 comments on commit 98b3904

Please sign in to comment.