Skip to content

Commit 0657cd2

Browse files
committed
897
1 parent fed9461 commit 0657cd2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/sempy_labs/_helper_functions.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,7 @@ def create_item(
282282
"""
283283

284284
(workspace_name, workspace_id) = resolve_workspace_name_and_id(workspace)
285-
item_type = utils.item_types.get(type)[0].lower()
286-
item_type_url = utils.item_types.get(type)[1]
285+
item_type_url = utils.items.get(type)
287286

288287
payload = {
289288
"displayName": name,
@@ -306,7 +305,7 @@ def create_item(
306305
client="fabric_sp",
307306
)
308307
print(
309-
f"{icons.green_dot} The '{name}' {item_type} has been successfully created within the '{workspace_name}' workspace."
308+
f"{icons.green_dot} The '{name}' {type} has been successfully created within the '{workspace_name}' workspace."
310309
)
311310

312311

src/sempy_labs/_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,6 @@
6666
"DigitalTwinBuilder": "digitaltwinbuilders",
6767
"DigitalTwinBuilderFlow": "DigitalTwinBuilderFlows",
6868
"MirroredAzureDatabricksCatalog": "mirroredAzureDatabricksCatalogs",
69+
"Map": "Maps",
70+
"AnomalyDetector": "anomalydetectors",
6971
}

0 commit comments

Comments
 (0)