Skip to content

Commit

Permalink
Fix test with when member_entity_ids exist
Browse files Browse the repository at this point in the history
  • Loading branch information
suprjinx committed Nov 19, 2024
1 parent bdd135c commit 128b408
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/lib/clients/vault/identity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ def write_identity(path:, name:, policies:, defaults: {}, extra_params: [], merg
merge((identity&.data || {}).
slice(*extra_params)).
compact
# cannot supply member ids for external group
if params[:type] == "external"
params.delete(:member_entity_ids)
end
client.logical.write(path, params)
end
end
Expand Down

0 comments on commit 128b408

Please sign in to comment.