Skip to content

Commit

Permalink
address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalnayak committed Nov 6, 2017
1 parent 5099cfe commit 99b58a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vault/identity_store_entities.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,13 +458,13 @@ func (i *IdentityStore) handleEntityReadCommon(entity *identity.Entity) (*logica
}
respData["direct_group_ids"] = groupIDs

impliedGroupIDs := make([]string, len(impliedGroups))
inheritedGroupIDs := make([]string, len(impliedGroups))
for i, group := range impliedGroups {
impliedGroupIDs[i] = group.ID
inheritedGroupIDs[i] = group.ID
}
respData["inherited_group_ids"] = impliedGroupIDs
respData["inherited_group_ids"] = inheritedGroupIDs

respData["group_ids"] = append(groupIDs, impliedGroupIDs...)
respData["group_ids"] = append(groupIDs, inheritedGroupIDs...)

return &logical.Response{
Data: respData,
Expand Down

0 comments on commit 99b58a3

Please sign in to comment.