Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{core} aaz: fix aaz content builder set_prop for None value #30088

Merged
merged 2 commits into from
Oct 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading