Skip to content

Commit

Permalink
fix: do not run dns checks if the deployment failed (#3651)
Browse files Browse the repository at this point in the history
  • Loading branch information
gwuah committed Jun 18, 2024
1 parent 0f5c287 commit df7529f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/command/deploy/machines_deploymachinesapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ func (md *machineDeployment) DeployMachinesApp(ctx context.Context) error {
}
}

if !md.skipDNSChecks {
// no need to run dns checks if the deployment failed
if !md.skipDNSChecks && err == nil {
if err := md.checkDNS(ctx); err != nil {
terminal.Warnf("DNS checks failed: %v\n", err)
}
Expand Down

0 comments on commit df7529f

Please sign in to comment.