Skip to content

Commit

Permalink
Merge pull request Azure#421 from kairu-ms/fix-location-auto-inherient
Browse files Browse the repository at this point in the history
Disable AazResourceLocationArg  auto fill from the value from resource group when it's `nullable`.
  • Loading branch information
kairu-ms authored Oct 18, 2024
2 parents 1689b75 + bdc9268 commit 596417d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aaz_dev/cli/controller/az_arg_group_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def render_arg_base(arg, cmd_ctx, arg_kwargs=None):
if 'options' in arg_kwargs and set(arg_kwargs['options']) == {'--location', '-l'}:
# it's default value
del arg_kwargs['options']
if not arg.no_rg_default and cmd_ctx.rg_arg_var:
if not arg.nullable and not arg.no_rg_default and cmd_ctx.rg_arg_var:
resource_group_arg, hide = cmd_ctx.get_argument(cmd_ctx.rg_arg_var)
if not hide:
resource_group_arg = resource_group_arg.replace('self.ctx.args.', '')
Expand Down

0 comments on commit 596417d

Please sign in to comment.