Skip to content

Commit f763312

Browse files
committed
Setting all properties in SetToState
1 parent ef98ecb commit f763312

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gitlab/resource_gitlab_project_mirror.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ func resourceGitlabProjectMirrorRead(d *schema.ResourceData, meta interface{}) e
168168

169169
func resourceGitlabProjectMirrorSetToState(d *schema.ResourceData, projectMirror *gitlab.ProjectMirror, projectID *string) {
170170
d.Set("enabled", projectMirror.Enabled)
171-
d.Set("only_protected_branches", projectMirror.OnlyProtectedBranches)
171+
d.Set("mirror_id", projectMirror.ID)
172172
d.Set("keep_divergent_refs", projectMirror.KeepDivergentRefs)
173+
d.Set("only_protected_branches", projectMirror.OnlyProtectedBranches)
174+
d.Set("project", projectID)
175+
d.Set("url", projectMirror.URL)
173176
}

0 commit comments

Comments
 (0)