Skip to content

Commit 2d41e06

Browse files
authored
add slot truncation
1 parent d433e5c commit 2d41e06

File tree

1 file changed

+1
-0
lines changed
  • src/azure-cli/azure/cli/command_modules/appservice

1 file changed

+1
-0
lines changed

src/azure-cli/azure/cli/command_modules/appservice/custom.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3346,6 +3346,7 @@ def set_traffic_routing(cmd, resource_group_name, name, distribution):
33463346
configs.experiments.ramp_up_rules = []
33473347
for r in distribution:
33483348
slot, percentage = r.split('=')
3349+
host_name_val = host_name_val[:40] if len(host_name_val) > 40 else host_name_val
33493350
action_host_name_slot = host_name_val + "-" + slot
33503351
configs.experiments.ramp_up_rules.append(RampUpRule(action_host_name=action_host_name_slot + host_name_suffix,
33513352
reroute_percentage=float(percentage),

0 commit comments

Comments
 (0)