File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 6666 "DigitalTwinBuilder" : "digitaltwinbuilders" ,
6767 "DigitalTwinBuilderFlow" : "DigitalTwinBuilderFlows" ,
6868 "MirroredAzureDatabricksCatalog" : "mirroredAzureDatabricksCatalogs" ,
69+ "Map" : "Maps" ,
70+ "AnomalyDetector" : "anomalydetectors" ,
6971}
You can’t perform that action at this time.
0 commit comments