weizhouapache commented on code in PR #6845:
URL: https://github.com/apache/cloudstack/pull/6845#discussion_r1044591849
##########
api/src/main/java/org/apache/cloudstack/api/command/user/vm/StartVMCmd.java:
##########
@@ -82,6 +82,13 @@ public class StartVMCmd extends BaseAsyncCmd implements
UserCmd {
since = "3.0.1")
private Long hostId;
+ @Parameter(name = ApiConstants.CONSIDER_LAST_HOST,
+ type = CommandType.BOOLEAN,
+ description = "True by default, CloudStack will firstly try to
start the VM on the last host where it run on before stopping, if destination
host is not specified. " +
+ "If false, CloudStack will not consider the last host and
start the VM by normal process.",
+ since = "4.18.0")
+ private Boolean considerLastHost;
Review Comment:
@JoaoJandre
if you have looked into the code, you may find that the last host is
considered as the first option when start a vm.
the current behavior is same as considerLastHost=true.
--
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]