Skip to content

Commit 7e0f211

Browse files
authored
Return nil if no warnings when creating roles (#202)
1 parent c3af7f7 commit 7e0f211

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

path_role.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,10 @@ func (b *jwtAuthBackend) pathRoleCreateUpdate(ctx context.Context, req *logical.
561561
return nil, err
562562
}
563563

564+
if len(resp.Warnings) == 0 {
565+
return nil, nil
566+
}
567+
564568
return resp, nil
565569
}
566570

0 commit comments

Comments
 (0)