Skip to content

Commit

Permalink
fix inspect show more than one number
Browse files Browse the repository at this point in the history
Signed-off-by: ning.mingxiao <ning.mingxiao@zte.com.cn>
  • Loading branch information
wuxin66 authored and ningmingxiao committed Aug 27, 2021
1 parent cee3b6a commit 789a926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/nerdctl/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func inspectAction(clicontext *cli.Context) error {
return err
}

if ni != 0 && nc != 0 {
if ni != 0 && nc != 0 || nc > 1 {
return errors.Errorf("multiple IDs found with provided prefix: %s", req)
}

Expand Down

0 comments on commit 789a926

Please sign in to comment.