buildx: prevent duplicate "failed to find driver" message

Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
Justin Chadwell 2022-08-18 14:20:47 +01:00
parent 441853f189
commit 7f9cad1e4e
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ func driversForNodeGroup(ctx context.Context, dockerCli command.Cli, ng *store.N
var err error
f, err = driver.GetFactory(ng.Driver, true)
if err != nil {
return nil, errors.Errorf("failed to find driver %q", f)
return nil, err
}
} else {
// empty driver means nodegroup was implicitly created as a default