removed start/stop VR from queue

This commit is contained in:
Anthony Xu 2014-09-17 19:04:34 -07:00
parent 674af6e473
commit 071004e3e1
2 changed files with 8 additions and 0 deletions

View File

@ -36,6 +36,10 @@ public class StartCommand extends Command {
@Override @Override
public boolean executeInSequence() { public boolean executeInSequence() {
//VR start doesn't go through queue
if (vm.getName() != null && vm.getName().startsWith("r-")) {
return false;
}
return executeInSequence; return executeInSequence;
} }

View File

@ -56,6 +56,10 @@ public class StopCommand extends RebootCommand {
@Override @Override
public boolean executeInSequence() { public boolean executeInSequence() {
//VR stop doesn't go through queue
if (vmName != null && vmName.startsWith("r-")) {
return false;
}
return executeInSequence; return executeInSequence;
} }