weizhouapache commented on a change in pull request #6146:
URL: https://github.com/apache/cloudstack/pull/6146#discussion_r836505286
##########
File path:
server/src/main/java/com/cloud/network/element/ConfigDriveNetworkElement.java
##########
@@ -630,6 +630,10 @@ private DataStore getDatastoreForConfigDriveIso(DiskTO
disk, VirtualMachineProfi
private boolean deleteConfigDriveIso(final VirtualMachine vm) throws
ResourceUnavailableException {
Long hostId = (vm.getHostId() != null) ? vm.getHostId() :
vm.getLastHostId();
Location location = getConfigDriveLocation(vm.getId());
Review comment:
@Pearl1594
move `Location location = getConfigDriveLocation(vm.getId());` to line 637
(just before `if (location == Location.HOST) {`) ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]