Skip to content

Commit 7b49304

Browse files
committed
fix: create/replace command name exclude the extension names
1 parent 7602b22 commit 7b49304

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scim2_cli/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import json
2+
import re
23
from typing import Any
34
from typing import TypeGuard
45

@@ -138,7 +139,7 @@ def cli(
138139

139140
ctx.obj["client"] = scim_client
140141
ctx.obj["resource_models"] = {
141-
resource_model.__name__.lower(): resource_model
142+
re.sub(r"\[.*\]", "", resource_model.__name__.lower()): resource_model
142143
for resource_model in ctx.obj["client"].resource_models
143144
}
144145

0 commit comments

Comments
 (0)