Skip to content

Commit 9c07c22

Browse files
author
audrastump
committed
update
1 parent 567cbc2 commit 9c07c22

2 files changed

Lines changed: 15 additions & 6 deletions

File tree

src/fleet/azext_fleet/custom.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

src/fleet/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
]
3434

3535
# TODO: Add any additional SDK dependencies here
36-
DEPENDENCIES = ['azure-mgmt-containerservicefleet==4.0.0b1']
36+
DEPENDENCIES = []
3737

3838
with open('README.rst', 'r', encoding='utf-8') as f:
3939
README = f.read()

0 commit comments

Comments
 (0)