Skip to content
This repository was archived by the owner on Jun 27, 2021. It is now read-only.

Commit 46c382a

Browse files
committed
actually hotfix the user issue
1 parent 2a2199e commit 46c382a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ GOVERSION := 1.13
1919
PROJECT := github.com/DeviaVir/terraform-provider-gsuite
2020
OWNER := $(notdir $(patsubst %/,%,$(dir $(PROJECT))))
2121
NAME := $(notdir $(PROJECT))
22-
VERSION := 0.1.38
22+
VERSION := 0.1.39
2323
EXTERNAL_TOOLS = \
2424
github.com/golang/dep/cmd/dep
2525

gsuite/resource_user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ func resourceUserCreate(d *schema.ResourceData, meta interface{}) error {
448448
}, config.TimeoutMinutes)
449449

450450
var locatedUser *directory.User
451-
if existingUsers.Users != nil {
451+
if existingUsers != nil {
452452
for _, existingUser := range existingUsers.Users {
453453
if existingUser.PrimaryEmail == user.PrimaryEmail {
454454
locatedUser = existingUser

0 commit comments

Comments
 (0)