diff --git a/provider/provider.go b/provider/provider.go index 6c7d7ee..766b16a 100644 --- a/provider/provider.go +++ b/provider/provider.go @@ -58,7 +58,7 @@ func (g *GcpProvider) CreateInstance(ctx context.Context, bootstrapParams params } inst, err := g.gcpCli.CreateInstance(ctx, spec) if err != nil { - return g.GetInstance(ctx, bootstrapParams.Name) + return params.ProviderInstance{}, fmt.Errorf("error creating instance: %w", err) } instance := params.ProviderInstance{ ProviderID: *inst.Name,