harikrishna-patnala commented on a change in pull request #5539:
URL: https://github.com/apache/cloudstack/pull/5539#discussion_r721311031
##########
File path:
plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/resource/VmwareResource.java
##########
@@ -922,7 +937,17 @@ private Answer execute(ResizeVolumeCommand cmd) {
throw new Exception("Failed to configure VM to resize disk.
vmName: " + vmName);
}
- return new ResizeVolumeAnswer(cmd, true, "success", newSize *
1024);
+ ResizeVolumeAnswer answer = new ResizeVolumeAnswer(cmd, true,
"success", newSize * 1024);
+ if (datastoreChangeObserved) {
+ answer.setContextParam("datastoreUUID", poolUUID);
+ answer.setContextParam("chainInfo", chainInfo);
+ }
+
+ if (volumePathChangeObserved) {
+ answer.setContextParam("volumePath", path);
+ answer.setContextParam("chainInfo", chainInfo);
+ }
+ return answer;
Review comment:
After making all other changes I see keeping this code changes looks
more readable.
--
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]