Skip to content

Commit

Permalink
Ditto for identity_group
Browse files Browse the repository at this point in the history
  • Loading branch information
lawliet89 committed Feb 25, 2019
1 parent 0d18abf commit e2ab8a4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vault/resource_identity_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,11 @@ func identityGroupRead(d *schema.ResourceData, meta interface{}) error {
}

for _, k := range []string{"name", "type", "metadata", "policies", "member_entity_ids", "member_group_ids"} {
d.Set(k, resp.Data[k])
if v, ok := resp.Data[k]; ok {
if err := d.Set(k, v); err != nil {
return fmt.Errorf("error reading %s for Identity Group %q", k, path)
}
}
}
return nil
}
Expand Down

0 comments on commit e2ab8a4

Please sign in to comment.