mirror of https://github.com/kubernetes/kops.git
fix: ocean.strategy is nullable
This commit is contained in:
parent
3b0af771e8
commit
40fd997c2b
|
@ -139,9 +139,11 @@ func (o *Ocean) Find(c *fi.Context) (*Ocean, error) {
|
|||
|
||||
// Strategy.
|
||||
{
|
||||
actual.SpotPercentage = ocean.Strategy.SpotPercentage
|
||||
actual.FallbackToOnDemand = ocean.Strategy.FallbackToOnDemand
|
||||
actual.UtilizeReservedInstances = ocean.Strategy.UtilizeReservedInstances
|
||||
if strategy := ocean.Strategy; strategy != nil {
|
||||
actual.SpotPercentage = strategy.SpotPercentage
|
||||
actual.FallbackToOnDemand = strategy.FallbackToOnDemand
|
||||
actual.UtilizeReservedInstances = strategy.UtilizeReservedInstances
|
||||
}
|
||||
}
|
||||
|
||||
// Compute.
|
||||
|
|
Loading…
Reference in New Issue