Skip to content

Commit

Permalink
Fix DeleteOptions on Public Ip Address (issue#38806 NetworkInterface …
Browse files Browse the repository at this point in the history
…fix only)
  • Loading branch information
v-hongli1 committed Mar 27, 2024
1 parent 84e8bf9 commit 9bc5f62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

### Features Added

- Supported set `DeleteOptions` on a public ip address in `NetworkInterface`, for allow deleting the public ip automatically when the vm is deleted.

### Breaking Changes

### Bugs Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -587,10 +587,6 @@ public NetworkInterfaceImpl update() {
}

public void ensureDeleteOptions(DeleteOptions deleteOptions, String ipConfigName) {
if (this.specifiedIpConfigNames.containsKey(ipConfigName)) {
this.specifiedIpConfigNames.replace(ipConfigName, deleteOptions);
} else {
this.specifiedIpConfigNames.put(ipConfigName, deleteOptions);
}
this.specifiedIpConfigNames.put(ipConfigName, deleteOptions);
}
}

0 comments on commit 9bc5f62

Please sign in to comment.