Skip to content

Commit

Permalink
Call SubResource correctly in list comprehension (#7974)
Browse files Browse the repository at this point in the history
Call SubResource(id=x) instead of SubResource(x) in list comprehension
since the latter introduced a type error and prevented az network lb
outbound-rule update from being used with the --frontend-ip-configs flag

This fixes GH-7973
  • Loading branch information
justenwalker authored and williexu committed Dec 4, 2018
1 parent 98c506b commit fa06642
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1984,7 +1984,7 @@ def set_lb_outbound_rule(instance, cmd, parent, item_name, protocol=None, outbou
_set_param(instance, 'backend_address_pool', SubResource(id=backend_address_pool)
if backend_address_pool else None)
_set_param(instance, 'frontend_ip_configurations',
[SubResource(x) for x in frontend_ip_configurations] if frontend_ip_configurations else None)
[SubResource(id=x) for x in frontend_ip_configurations] if frontend_ip_configurations else None)

return parent

Expand Down

0 comments on commit fa06642

Please sign in to comment.