Skip to content

Commit 192e224

Browse files
RadekManakdamdo
andauthored
Update pkg/cloud/gcp/actuators/machine/reconciler.go
Co-authored-by: Damiano Donati <[email protected]>
1 parent 7bdef5f commit 192e224

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cloud/gcp/actuators/machine/reconciler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func restartPolicyToBool(policy machinev1.GCPRestartPolicyType, preemptible bool
9292
return nil, nil
9393
} else if policy == machinev1.RestartPolicyAlways {
9494
if preemptible || provisioningModel == machinev1.GCPSpotInstance {
95-
return nil, errors.New("preemptible or spot instances cannot be automatically restarted")
95+
return nil, errors.New("preemptible/spot instances cannot be automatically restarted")
9696
}
9797
return pointer.Bool(true), nil
9898
} else if policy == machinev1.RestartPolicyNever {

0 commit comments

Comments
 (0)