Skip to content

Commit

Permalink
{core} aaz: fix content builder
Browse files Browse the repository at this point in the history
  • Loading branch information
kairu-ms committed Oct 15, 2024
1 parent 5ffb7ab commit 7c88848
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/azure-cli-core/azure/cli/core/aaz/_content_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ def set_prop(self, prop_name, typ, arg_key=None, typ_kwargs=None):
value[prop_name] = {}
else:
raise NotImplementedError()
sub_values.append(value[prop_name])
sub_args.append(sub_arg)
if value != None:
sub_values.append(value[prop_name])
sub_args.append(sub_arg)

if sub_values:
self._sub_prop_builders[prop_name] = AAZContentBuilder(sub_values, sub_args)
Expand Down

0 comments on commit 7c88848

Please sign in to comment.