@@ -180,7 +180,7 @@ func (c *ShadeformClient) GetInstance(ctx context.Context, instanceID v1.CloudPr
180180 return nil , errors .WrapAndTrace (fmt .Errorf ("no instance returned from get request" ))
181181 }
182182
183- instance , err := c .convertInstanceInfoResponseToV1Instance (ctx , * resp )
183+ instance , err := c .convertInstanceInfoResponseToV1Instance (* resp )
184184 if err != nil {
185185 return nil , errors .WrapAndTrace (err )
186186 }
@@ -215,7 +215,7 @@ func (c *ShadeformClient) ListInstances(ctx context.Context, _ v1.ListInstancesA
215215
216216 var instances []v1.Instance
217217 for _ , instance := range resp .Instances {
218- singleInstance , err := c .convertShadeformInstanceToV1Instance (ctx , instance )
218+ singleInstance , err := c .convertShadeformInstanceToV1Instance (instance )
219219 if err != nil {
220220 return nil , errors .WrapAndTrace (err )
221221 }
@@ -257,7 +257,7 @@ func (c *ShadeformClient) getLifecycleStatus(status string) v1.LifecycleStatus {
257257}
258258
259259// convertInstanceInfoResponseToV1Instance - converts Instance Info to v1 instance
260- func (c * ShadeformClient ) convertInstanceInfoResponseToV1Instance (ctx context. Context , instanceInfo openapi.InstanceInfoResponse ) (* v1.Instance , error ) {
260+ func (c * ShadeformClient ) convertInstanceInfoResponseToV1Instance (instanceInfo openapi.InstanceInfoResponse ) (* v1.Instance , error ) {
261261 instanceType := c .getInstanceType (string (instanceInfo .Cloud ), instanceInfo .ShadeInstanceType )
262262 lifeCycleStatus := c .getLifecycleStatus (string (instanceInfo .Status ))
263263
@@ -309,7 +309,7 @@ func (c *ShadeformClient) convertInstanceInfoResponseToV1Instance(ctx context.Co
309309
310310// convertInstanceInfoResponseToV1Instance - converts /instances response to v1 instance; the api struct is slightly
311311// different from instance info response and expected to diverge so keeping it as a separate function for now
312- func (c * ShadeformClient ) convertShadeformInstanceToV1Instance (ctx context. Context , shadeformInstance openapi.Instance ) (* v1.Instance , error ) {
312+ func (c * ShadeformClient ) convertShadeformInstanceToV1Instance (shadeformInstance openapi.Instance ) (* v1.Instance , error ) {
313313 instanceType := c .getInstanceType (string (shadeformInstance .Cloud ), shadeformInstance .ShadeInstanceType )
314314 lifeCycleStatus := c .getLifecycleStatus (string (shadeformInstance .Status ))
315315
0 commit comments