From fd39af27df2e3f3f801359b21083fc29da063fcf Mon Sep 17 00:00:00 2001 From: Domenic Simone Date: Thu, 19 Oct 2023 21:25:57 +1100 Subject: [PATCH] chore: small fix --- octopusdeploy/resource_environment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octopusdeploy/resource_environment.go b/octopusdeploy/resource_environment.go index 66559a19d..68a3f737a 100644 --- a/octopusdeploy/resource_environment.go +++ b/octopusdeploy/resource_environment.go @@ -79,7 +79,7 @@ func resourceEnvironmentUpdate(ctx context.Context, d *schema.ResourceData, m in environment := expandEnvironment(d) client := m.(*client.Client) - updatedEnvironment, err := environments.Update(client, d.Get("space_id").(string), environment) + updatedEnvironment, err := environments.Update(client, environment) if err != nil { return diag.FromErr(err) }