Skip to content

Commit df4d0f9

Browse files
authored
chore: limit empty identity to remove (#30286)
1 parent 7506f6a commit df4d0f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ def to_serialized_data(self, processor=None, **kwargs):
478478

479479
result = self._build_identity(calculate_data, result)
480480

481-
if not result:
481+
if not result and calculate_data.get("action", None) == "remove":
482482
result = {"type": "None"} # empty identity
483483

484484
if not result and self._is_patch:

0 commit comments

Comments
 (0)