buildx: prevent duplicate "failed to find driver" message

Signed-off-by: Justin Chadwell <me@jedevc.com>
pull/1281/head
Justin Chadwell 2 years ago
parent 441853f189
commit 7f9cad1e4e

@ -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

Loading…
Cancel
Save