Skip to content

Commit

Permalink
Return error if image not found
Browse files Browse the repository at this point in the history
Co-authored-by: Anbraten <[email protected]>
  • Loading branch information
guisea and anbraten committed Mar 17, 2024
1 parent 5da7b7a commit 4352396
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion providers/vultr/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ func (p *Provider) DeployAgent(ctx context.Context, agent *woodpecker.Agent) err
break
}
}

if image == -1 {
return fmt.Errorf("%s: DeployAgent: no image found for %s", p.name, p.image)
}
tags := make([]string, 0)
for key, item := range p.labels {
tags = append(tags, fmt.Sprintf("%s=%s", key, item))
Expand Down

0 comments on commit 4352396

Please sign in to comment.