Skip to content

Commit

Permalink
Merge pull request #353 from sctmike/dev
Browse files Browse the repository at this point in the history
Make API key permissions specification case-insensitive
  • Loading branch information
nblumhardt authored May 15, 2024
2 parents 8af28fa + 3137325 commit b62577b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ $token = (
echo $pw |
seqcli apikey create `
-t CLI `
--permissions="read,write,project,organization,system" `
--permissions="Read,Write,Project,Organization,System" `
--connect-username $user --connect-password-stdin
)
```
Expand Down
2 changes: 1 addition & 1 deletion src/SeqCli/Cli/Commands/ApiKey/CreateCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ protected override async Task<int> Run()
{
foreach (var permission in _permissions)
{
if (!Enum.TryParse<Permission>(permission, out var p))
if (!Enum.TryParse<Permission>(permission, true, out var p))
{
Log.Error("Unrecognized permission {Permission}", permission);
return 1;
Expand Down

0 comments on commit b62577b

Please sign in to comment.