Skip to content

Commit

Permalink
Merge pull request #324 from ningmingxiao/dev2
Browse files Browse the repository at this point in the history
fix inspect show more than one number
  • Loading branch information
AkihiroSuda committed Sep 10, 2021
2 parents 455b830 + 789a926 commit 04bc79a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/nerdctl/inspect.go
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 04bc79a

Please sign in to comment.