Skip to content

Commit 68e5f06

Browse files
authored
{core} aaz: fix aaz content builder set_prop for None value (#30088)
* {core} aaz: fix content builder * Suppress linter issue
1 parent 9fd6b4f commit 68e5f06

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/azure-cli-core/azure/cli/core/aaz/_content_builder.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ def set_prop(self, prop_name, typ, arg_key=None, typ_kwargs=None):
7979
value[prop_name] = {}
8080
else:
8181
raise NotImplementedError()
82-
sub_values.append(value[prop_name])
83-
sub_args.append(sub_arg)
82+
if value != None: # noqa: E711, pylint: disable=singleton-comparison
83+
sub_values.append(value[prop_name])
84+
sub_args.append(sub_arg)
8485

8586
if sub_values:
8687
self._sub_prop_builders[prop_name] = AAZContentBuilder(sub_values, sub_args)

0 commit comments

Comments
 (0)