Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
atombrella committed Nov 20, 2024
1 parent a9eb5bf commit 53c7e42
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,18 +169,13 @@ def load_balancer_models(self) -> SimpleNamespace:
:return: SimpleNamespace
"""
if self.__loadbalancer_models is None:
load_balancer_models = {}
load_balancer_models["ManagedClusterLoadBalancerProfile"] = self.ManagedClusterLoadBalancerProfile
load_balancer_models[
"ManagedClusterLoadBalancerProfileManagedOutboundIPs"
] = self.ManagedClusterLoadBalancerProfileManagedOutboundIPs
load_balancer_models[
"ManagedClusterLoadBalancerProfileOutboundIPs"
] = self.ManagedClusterLoadBalancerProfileOutboundIPs
load_balancer_models[
"ManagedClusterLoadBalancerProfileOutboundIPPrefixes"
] = self.ManagedClusterLoadBalancerProfileOutboundIPPrefixes
load_balancer_models["ResourceReference"] = self.ResourceReference
load_balancer_models = {
"ManagedClusterLoadBalancerProfile": self.ManagedClusterLoadBalancerProfile,
"ManagedClusterLoadBalancerProfileManagedOutboundIPs": self.ManagedClusterLoadBalancerProfileManagedOutboundIPs,
"ManagedClusterLoadBalancerProfileOutboundIPs": self.ManagedClusterLoadBalancerProfileOutboundIPs,
"ManagedClusterLoadBalancerProfileOutboundIPPrefixes": self.ManagedClusterLoadBalancerProfileOutboundIPPrefixes,
"ResourceReference": self.ResourceReference
}
self.__loadbalancer_models = SimpleNamespace(**load_balancer_models)
return self.__loadbalancer_models

Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli/azure/cli/command_modules/sql/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def get_location_type_with_default_from_resource_group(cli_ctx):
"kB": 1.0 / (1024 * 1024),
"MB": 1.0 / 1024,
"GB": 1,
"TB": 1024},
"TB": 1024}),
help='The storage size. If no unit is specified, defaults to gigabytes (GB).',
validator=validate_managed_instance_storage_size)

Expand Down

0 comments on commit 53c7e42

Please sign in to comment.