Skip to content

Commit 86f21f8

Browse files
committed
honor new instance and instance type on update, not the old
1 parent 03b484d commit 86f21f8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

v1/providers/shadeform/instance.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,12 @@ func (c *ShadeformClient) RebootInstance(_ context.Context, _ v1.CloudProviderIn
211211
return v1.ErrNotImplemented
212212
}
213213

214-
func (c *ShadeformClient) MergeInstanceForUpdate(currInst v1.Instance, _ v1.Instance) v1.Instance {
215-
return currInst
214+
func (c *ShadeformClient) MergeInstanceForUpdate(_ v1.Instance, newInstance v1.Instance) v1.Instance {
215+
return newInstance
216216
}
217217

218-
func (c *ShadeformClient) MergeInstanceTypeForUpdate(currIt v1.InstanceType, _ v1.InstanceType) v1.InstanceType {
219-
return currIt
218+
func (c *ShadeformClient) MergeInstanceTypeForUpdate(_ v1.InstanceType, newInstanceType v1.InstanceType) v1.InstanceType {
219+
return newInstanceType
220220
}
221221

222222
func (c *ShadeformClient) getLifecycleStatus(status string) v1.LifecycleStatus {

0 commit comments

Comments
 (0)