diff --git a/octopusdeploy/resource_project.go b/octopusdeploy/resource_project.go index 0dc12ae5..a45eb457 100644 --- a/octopusdeploy/resource_project.go +++ b/octopusdeploy/resource_project.go @@ -47,7 +47,7 @@ func resourceProjectCreate(ctx context.Context, d *schema.ResourceData, m interf if persistenceSettings != nil && persistenceSettings.Type() == projects.PersistenceSettingsTypeVersionControlled { tflog.Info(ctx, "converting project to use VCS") - vcsProject, err := projects.ConvertProjectToVcs(client, createdProject, "converting project to use VCS", "", persistenceSettings.(projects.GitPersistenceSettings)) + vcsProject, err := projects.ConvertToVCS(client, createdProject, "converting project to use VCS", "", persistenceSettings.(projects.GitPersistenceSettings)) if err != nil { projects.DeleteByID(client, spaceID, createdProject.GetID()) return diag.FromErr(err) @@ -132,7 +132,7 @@ func resourceProjectUpdate(ctx context.Context, d *schema.ResourceData, m interf tflog.Info(ctx, fmt.Sprintf("converting project to use VCS (%s)", d.Id())) project.Links["ConvertToVcs"] = convertToVcsLink - vcsProject, err := projects.ConvertProjectToVcs(client, project, "converting project to use VCS", "", versionControlSettings) + vcsProject, err := projects.ConvertToVCS(client, project, "converting project to use VCS", "", versionControlSettings) if err != nil { return diag.FromErr(err) } diff --git a/octopusdeploy/resource_variable.go b/octopusdeploy/resource_variable.go index d273a4a9..dcb8db8c 100644 --- a/octopusdeploy/resource_variable.go +++ b/octopusdeploy/resource_variable.go @@ -82,7 +82,7 @@ func resourceVariableCreate(ctx context.Context, d *schema.ResourceData, m inter for _, v := range variableSet.Variables { if v.Name == variable.Name && v.Type == variable.Type && (v.IsSensitive || v.Value == variable.Value) && v.Description == variable.Description && v.IsSensitive == variable.IsSensitive { - scopeMatches, _, err := client.Variables.MatchesScope(v.Scope, &variable.Scope) + scopeMatches, _, err := variables.MatchesScope(v.Scope, &variable.Scope) if err != nil { return diag.FromErr(err) } @@ -177,7 +177,7 @@ func resourceVariableUpdate(ctx context.Context, d *schema.ResourceData, m inter for _, v := range variableSet.Variables { if v.Name == variable.Name && v.Type == variable.Type && (v.IsSensitive || v.Value == variable.Value) && v.Description == variable.Description && v.IsSensitive == variable.IsSensitive { - scopeMatches, _, _ := client.Variables.MatchesScope(v.Scope, &variable.Scope) + scopeMatches, _, _ := variables.MatchesScope(v.Scope, &variable.Scope) if scopeMatches { if err := setVariable(ctx, d, v); err != nil { return diag.FromErr(err)