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

Commit 96c1c1f

Browse files
mikelaramieDeviaVir
authored andcommitted
Fixes to resource_user.go (#98)
1 parent 13f8aa2 commit 96c1c1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gsuite/resource_user.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,15 +238,15 @@ func resourceUser() *schema.Resource {
238238

239239
"recovery_email": {
240240
Type: schema.TypeString,
241-
Required: true,
241+
Optional: true,
242242
StateFunc: func(val interface{}) string {
243243
return strings.ToLower(val.(string))
244244
},
245245
},
246246

247247
"recovery_phone": {
248248
Type: schema.TypeString,
249-
Required: true,
249+
Optional: true,
250250
StateFunc: func(val interface{}) string {
251251
return strings.ToLower(val.(string))
252252
},
@@ -349,7 +349,7 @@ func resourceUserCreate(d *schema.ResourceData, meta interface{}) error {
349349
}
350350
if v, ok := d.GetOk("recovery_phone"); ok {
351351
log.Printf("[DEBUG] Setting %s: %s", "recovery_phone", v.(string))
352-
user.RecoveryEmail = strings.ToLower(v.(string))
352+
user.RecoveryPhone = strings.ToLower(v.(string))
353353
}
354354
if v, ok := d.GetOk("org_unit_path"); ok {
355355
log.Printf("[DEBUG] Setting %s: %s", "org_unit_path", v.(string))

0 commit comments

Comments
 (0)