Skip to content

Commit b75915d

Browse files
committed
[Refractor] - Edit so the response is same as original when identity is empty
1 parent a1f1e00 commit b75915d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/azure-cli/azure/cli/command_modules/vm

src/azure-cli/azure/cli/command_modules/vm/custom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ def show_vm_identity(cmd, resource_group_name, vm_name):
833833
if identity and not identity.get('userAssignedIdentities'):
834834
identity['userAssignedIdentities'] = None
835835

836-
return identity or {}
836+
return identity or None
837837

838838

839839
def show_vmss_identity(cmd, resource_group_name, vm_name):

0 commit comments

Comments
 (0)