Skip to content

Commit

Permalink
Update custom.py
Browse files Browse the repository at this point in the history
  • Loading branch information
qwuae1 authored Jul 8, 2024
1 parent 1589b5f commit 9f9ceae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vm-repair/azext_vm_repair/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,8 +650,7 @@ def reset_nic(cmd, vm_name, resource_group_name, yes=False):
# Wait for IP updated
wait_ip_update_command = 'az network nic ip-config wait --updated -g {g} --nic-name {nic} -n ' \
.format(g=resource_group_name, nic=primary_nic_name)

current_ip_address = _call_az_command(wait_ip_update_command)
_call_az_command(wait_ip_update_command)


# 4) Change things back. This will also invoke and wait for a VM restart.
Expand Down

0 comments on commit 9f9ceae

Please sign in to comment.