Use one method instead of two
@@ -533,9 +533,9 @@ resource "azuredevops_build_definition" "build" {
is_secret = true
}
}`, name, varValue, secretVarValue)
- repoResource := getGitRepoResource(name+"-repo", "Clean")
- projectResource := HclProjectResource(name)
- return fmt.Sprintf("%s\n%s\n%s", projectResource, repoResource, buildDefinitionResource)
+ repoAndProjectResource := HclGitRepoResource(name, name+"-repo", "Clean")
+
+ return fmt.Sprintf("%s\n%s", repoAndProjectResource, buildDefinitionResource)
}
// HclGroupMembershipResource full terraform stanza to standup a group membership
