Skip to content

Commit

Permalink
{core} aaz: fix aaz content builder set_prop for None value (#30088)
Browse files Browse the repository at this point in the history
* {core} aaz: fix content builder

* Suppress linter issue
  • Loading branch information
kairu-ms authored Oct 16, 2024
1 parent 9fd6b4f commit 68e5f06
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: # noqa: E711, pylint: disable=singleton-comparison
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 68e5f06

Please sign in to comment.