Skip to content

Commit 2ea6ecd

Browse files
author
Jordan Caussat
committed
Fix group_variable and project_variable resources after go-gitlab upgrade
1 parent 924fa6f commit 2ea6ecd

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

gitlab/resource_gitlab_group_variable.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"log"
55

66
"github.com/hashicorp/terraform/helper/schema"
7-
"github.com/xanzy/go-gitlab"
7+
gitlab "github.com/xanzy/go-gitlab"
88
)
99

1010
func resourceGitlabGroupVariable() *schema.Resource {
@@ -105,7 +105,6 @@ func resourceGitlabGroupVariableUpdate(d *schema.ResourceData, meta interface{})
105105
protected := d.Get("protected").(bool)
106106

107107
options := &gitlab.UpdateVariableOptions{
108-
Key: &key,
109108
Value: &value,
110109
Protected: &protected,
111110
EnvironmentScope: nil,

gitlab/resource_gitlab_project_variable.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"log"
55

66
"github.com/hashicorp/terraform/helper/schema"
7-
"github.com/xanzy/go-gitlab"
7+
gitlab "github.com/xanzy/go-gitlab"
88
)
99

1010
func resourceGitlabProjectVariable() *schema.Resource {
@@ -105,7 +105,6 @@ func resourceGitlabProjectVariableUpdate(d *schema.ResourceData, meta interface{
105105
protected := d.Get("protected").(bool)
106106

107107
options := &gitlab.UpdateVariableOptions{
108-
Key: &key,
109108
Value: &value,
110109
Protected: &protected,
111110
EnvironmentScope: nil,

0 commit comments

Comments
 (0)