Skip to content

Commit 5db61c0

Browse files
Fix typo: the past tense of shutdown is shutdown, not shutdowned
1 parent 93aad24 commit 5db61c0

File tree

8 files changed

+10
-7
lines changed

8 files changed

+10
-7
lines changed

api/src/main/java/com/cloud/vm/VirtualMachine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public enum State {
5252
Migrating(true, "VM is being migrated. host id holds to from host"),
5353
Error(false, "VM is in error"),
5454
Unknown(false, "VM state is unknown."),
55-
Shutdowned(false, "VM is shutdowned from inside");
55+
Shutdown(false, "VM state is shutdown from inside");
5656

5757
private final boolean _transitional;
5858
String _description;

engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/NetworkOrchestrator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2970,7 +2970,7 @@ public void destroyExpendableRouters(final List<? extends VirtualRouter> routers
29702970
for (final VirtualRouter router : routers) {
29712971
if (router.getState() == VirtualMachine.State.Stopped ||
29722972
router.getState() == VirtualMachine.State.Error ||
2973-
router.getState() == VirtualMachine.State.Shutdowned ||
2973+
router.getState() == VirtualMachine.State.Shutdown ||
29742974
router.getState() == VirtualMachine.State.Unknown) {
29752975
s_logger.debug("Destroying old router " + router);
29762976
_routerService.destroyRouter(router.getId(), context.getAccount(), context.getCaller().getId());

engine/schema/src/main/resources/META-INF/db/schema-41300to41400.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@
2121

2222
-- KVM: enable storage data motion on KVM hypervisor_capabilities
2323
UPDATE `cloud`.`hypervisor_capabilities` SET `storage_motion_supported` = 1 WHERE `hypervisor_capabilities`.`hypervisor_type` = 'KVM';
24+
25+
-- #3659 Fix typo: the past tense of shutdown is shutdown, not shutdowned
26+
UPDATE `cloud`.`vm_instance` SET state='Shutdown' WHERE state='Shutdowned';

plugins/network-elements/juniper-contrail/src/main/java/org/apache/cloudstack/network/contrail/model/VirtualMachineModel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ boolean isActiveInstance(VMInstanceVO instance) {
224224
case Migrating:
225225
case Starting:
226226
case Running:
227-
case Shutdowned:
227+
case Shutdown:
228228
case Stopped:
229229
case Stopping:
230230
return true;

server/src/main/java/com/cloud/consoleproxy/ConsoleProxyManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ private boolean allowToLaunchNew(long dcId) {
918918
}
919919
List<ConsoleProxyVO> l =
920920
_consoleProxyDao.getProxyListInStates(dcId, VirtualMachine.State.Starting, VirtualMachine.State.Running, VirtualMachine.State.Stopping,
921-
VirtualMachine.State.Stopped, VirtualMachine.State.Migrating, VirtualMachine.State.Shutdowned, VirtualMachine.State.Unknown);
921+
VirtualMachine.State.Stopped, VirtualMachine.State.Migrating, VirtualMachine.State.Shutdown, VirtualMachine.State.Unknown);
922922

923923
String value = _configDao.getValue(Config.ConsoleProxyLaunchMax.key());
924924
int launchLimit = NumbersUtil.parseInt(value, 10);

server/src/main/java/com/cloud/storage/snapshot/SnapshotManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public Snapshot revertSnapshot(Long snapshotId) {
290290
// in order to revert the volume
291291
if (instanceId != null) {
292292
UserVmVO vm = _vmDao.findById(instanceId);
293-
if (vm.getState() != State.Stopped && vm.getState() != State.Shutdowned) {
293+
if (vm.getState() != State.Stopped && vm.getState() != State.Shutdown) {
294294
throw new InvalidParameterValueException("The VM the specified disk is attached to is not in the shutdown state.");
295295
}
296296
// If target VM has associated VM snapshots then don't allow to revert from snapshot

ui/scripts/instances.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@
517517
'Destroyed': 'off',
518518
'Expunging': 'off',
519519
'Stopping': 'warning',
520-
'Shutdowned': 'warning'
520+
'Shutdown': 'warning'
521521
}
522522
}
523523
},

ui/scripts/metrics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@
447447
'Destroyed': 'off',
448448
'Expunging': 'off',
449449
'Stopping': 'warning',
450-
'Shutdowned': 'warning'
450+
'Shutdown': 'warning'
451451
},
452452
compact: true
453453
},

0 commit comments

Comments
 (0)