Skip to content

Commit

Permalink
Chore: finish lifecycle space conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
tothegills committed Oct 13, 2023
1 parent 3a0b339 commit 4124c4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions octopusdeploy/resource_lifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func resourceLifecycleRead(ctx context.Context, d *schema.ResourceData, m interf
log.Printf("[INFO] reading lifecycle (%s)", d.Id())

client := m.(*client.Client)
lifecycle, err := client.Lifecycles.GetByID(d.Id())
lifecycle, err := lifecycles.GetByID(client, d.Get("space_id").(string), d.Id())
if err != nil {
return errors.ProcessApiError(ctx, d, err, "lifecycle")
}
Expand All @@ -80,7 +80,7 @@ func resourceLifecycleUpdate(ctx context.Context, d *schema.ResourceData, m inte
lifecycle := expandLifecycle(d)

client := m.(*client.Client)
updatedLifecycle, err := client.Lifecycles.Update(lifecycle)
updatedLifecycle, err := lifecycles.Update(client, lifecycle)
if err != nil {
return diag.FromErr(err)
}
Expand Down

0 comments on commit 4124c4c

Please sign in to comment.