Skip to content

Commit 0253e89

Browse files
authored
fix(iam): use expired and not expirable to filter expired API keys (#2782)
1 parent 4cfc37f commit 0253e89

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cmd/scw/testdata/test-all-usage-iam-api-key-list-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ USAGE:
88
ARGS:
99
[order-by=created_at_asc] Criteria for sorting results (created_at_asc | created_at_desc | updated_at_asc | updated_at_desc | expires_at_asc | expires_at_desc | access_key_asc | access_key_desc)
1010
[editable] Filter out editable API keys or not
11-
[expirable] Filter out expirable API keys or not
11+
[expired] Filter out expired API keys or not
1212
[access-key] Filter out by access key
1313
[description] Filter out by description
1414
[bearer-id] Filter out by bearer ID

docs/commands/iam.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ scw iam api-key list [arg=value ...]
140140
| ~~application-id~~ | Deprecated | ID of an application bearer |
141141
| ~~user-id~~ | Deprecated | ID of a user bearer |
142142
| editable | | Filter out editable API keys or not |
143-
| expirable | | Filter out expirable API keys or not |
143+
| expired | | Filter out expired API keys or not |
144144
| access-key | | Filter out by access key |
145145
| description | | Filter out by description |
146146
| bearer-id | | Filter out by bearer ID |

internal/namespaces/iam/v1alpha1/iam_cli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,8 +1562,8 @@ func iamAPIKeyList() *core.Command {
15621562
Positional: false,
15631563
},
15641564
{
1565-
Name: "expirable",
1566-
Short: `Filter out expirable API keys or not`,
1565+
Name: "expired",
1566+
Short: `Filter out expired API keys or not`,
15671567
Required: false,
15681568
Deprecated: false,
15691569
Positional: false,

0 commit comments

Comments
 (0)