@@ -104,10 +104,19 @@ def create_fleet(cmd,
104104 elif assign_identity is not None :
105105 raise CLIError ("Cannot assign identity without enabling managed identity." )
106106
107+ fleet_properties = cmd .get_models (
108+ "FleetProperties" ,
109+ resource_type = CUSTOM_MGMT_FLEET ,
110+ operation_group = "fleets"
111+ )()
112+
113+ if fleet_hub_profile :
114+ fleet_properties .hub_profile = fleet_hub_profile
115+
107116 fleet = fleet_model (
108117 location = location ,
109118 tags = tags ,
110- hub_profile = fleet_hub_profile ,
119+ properties = fleet_properties ,
111120 identity = managed_service_identity
112121 )
113122
@@ -490,17 +499,17 @@ def get_update_run_strategy(cmd, operation_group, stages):
490499 for group in stage ["groups" ]:
491500 update_groups .append (update_group_model (
492501 name = group ["name" ],
493- before_gates = group .get ("beforeGates" , []),
494- after_gates = group .get ("afterGates" , []),
502+ # before_gates=group.get("beforeGates", []),
503+ # after_gates=group.get("afterGates", []),
495504 ))
496505
497506 after_wait = stage .get ("afterStageWaitInSeconds" ) or 0
498507
499508 update_stages .append (update_stage_model (
500509 name = stage ["name" ],
501510 groups = update_groups ,
502- before_gates = stage .get ("beforeGates" , []),
503- after_gates = stage .get ("afterGates" , []),
511+ # before_gates=stage.get("beforeGates", []),
512+ # after_gates=stage.get("afterGates", []),
504513 after_stage_wait_in_seconds = after_wait
505514 ))
506515
0 commit comments