diff --git a/api/src/main/java/org/apache/cloudstack/api/command/admin/host/DeleteHostCmd.java b/api/src/main/java/org/apache/cloudstack/api/command/admin/host/DeleteHostCmd.java index 609d189b0ca..934965cd24c 100644 --- a/api/src/main/java/org/apache/cloudstack/api/command/admin/host/DeleteHostCmd.java +++ b/api/src/main/java/org/apache/cloudstack/api/command/admin/host/DeleteHostCmd.java @@ -64,7 +64,7 @@ public class DeleteHostCmd extends BaseCmd { return (forced != null) ? forced : false; } - public boolean isForceDestoryLocalStorage() { + public boolean isForceDestroyLocalStorage() { return (forceDestroyLocalStorage != null) ? forceDestroyLocalStorage : true; } @@ -79,7 +79,7 @@ public class DeleteHostCmd extends BaseCmd { @Override public void execute() { - boolean result = _resourceService.deleteHost(getId(), isForced(), isForceDestoryLocalStorage()); + boolean result = _resourceService.deleteHost(getId(), isForced(), isForceDestroyLocalStorage()); if (result) { SuccessResponse response = new SuccessResponse(getCommandName()); this.setResponseObject(response); diff --git a/api/src/main/java/org/apache/cloudstack/api/command/user/loadbalancer/AssignToLoadBalancerRuleCmd.java b/api/src/main/java/org/apache/cloudstack/api/command/user/loadbalancer/AssignToLoadBalancerRuleCmd.java index 7647b017f29..c245ab236fe 100644 --- a/api/src/main/java/org/apache/cloudstack/api/command/user/loadbalancer/AssignToLoadBalancerRuleCmd.java +++ b/api/src/main/java/org/apache/cloudstack/api/command/user/loadbalancer/AssignToLoadBalancerRuleCmd.java @@ -133,7 +133,7 @@ public class AssignToLoadBalancerRuleCmd extends BaseAsyncCmd { throw new InvalidParameterValueException("Unable to find virtual machine ID: " + vmId); } - //check wether the given ip is valid ip or not + //check whether the given ip is valid ip or not if (vmIp == null || !NetUtils.isValidIp4(vmIp)) { throw new InvalidParameterValueException("Invalid ip address "+ vmIp +" passed in vmidipmap for " + "vmid " + vmId); diff --git a/engine/schema/src/main/java/com/cloud/offerings/dao/NetworkOfferingDaoImpl.java b/engine/schema/src/main/java/com/cloud/offerings/dao/NetworkOfferingDaoImpl.java index a35e7914895..823ea36b97f 100644 --- a/engine/schema/src/main/java/com/cloud/offerings/dao/NetworkOfferingDaoImpl.java +++ b/engine/schema/src/main/java/com/cloud/offerings/dao/NetworkOfferingDaoImpl.java @@ -228,7 +228,7 @@ public class NetworkOfferingDaoImpl extends GenericDaoBase listByTemplateZoneDownloadStatus(long templateId, Long zoneId, Status... status) { - // get all elgible image stores + // get all eligible image stores List imgStores = _storeMgr.getImageStoresByScope(new ZoneScope(zoneId)); if (imgStores != null) { List result = new ArrayList(); @@ -341,7 +341,7 @@ public class TemplateDataStoreDaoImpl extends GenericDaoBase imgStores = _storeMgr.getImageStoresByScope(new ZoneScope(zoneId)); if (imgStores != null) { for (DataStore store : imgStores) { @@ -357,7 +357,7 @@ public class TemplateDataStoreDaoImpl extends GenericDaoBase cacheStores = _storeMgr.getImageCacheStores(new ZoneScope(zoneId)); if (cacheStores != null) { for (DataStore store : cacheStores) { @@ -448,7 +448,7 @@ public class TemplateDataStoreDaoImpl extends GenericDaoBase imgStores = null; if (role == DataStoreRole.Image) { imgStores = _storeMgr.getImageStoresByScope(new ZoneScope(zoneId)); diff --git a/engine/storage/src/test/java/org/apache/cloudstack/storage/BaseTypeTest.java b/engine/storage/src/test/java/org/apache/cloudstack/storage/BaseTypeTest.java index 48759da2902..379ebfa0942 100644 --- a/engine/storage/src/test/java/org/apache/cloudstack/storage/BaseTypeTest.java +++ b/engine/storage/src/test/java/org/apache/cloudstack/storage/BaseTypeTest.java @@ -32,8 +32,8 @@ public class BaseTypeTest { @Test public void testIsSameTypeAs() { - Assert.assertTrue("'a' and 'A' should be considdered the same type", new TestType("a").isSameTypeAs("A")); - Assert.assertTrue("'B' and 'b' should be considdered the same address", new TestType("B").isSameTypeAs(new TestType("b"))); + Assert.assertTrue("'a' and 'A' should be considered the same type", new TestType("a").isSameTypeAs("A")); + Assert.assertTrue("'B' and 'b' should be considered the same address", new TestType("B").isSameTypeAs(new TestType("b"))); } class TestType extends BaseType { String content; diff --git a/plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/CloudStackTypes.cs b/plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/CloudStackTypes.cs index 6e1df24f27a..306bc96f8c9 100644 --- a/plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/CloudStackTypes.cs +++ b/plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/CloudStackTypes.cs @@ -24,7 +24,7 @@ using System.Text; using System.Threading.Tasks; // C# versions of certain CloudStack types to simplify JSON serialisation. -// Limit to the number of types, becasue they are written and maintained manually. +// Limit to the number of types, because they are written and maintained manually. // JsonProperty used to identify property name when serialised, which allows // later adoption of C# naming conventions if requried. namespace HypervResource diff --git a/plugins/hypervisors/hyperv/DotNet/ServerResource/ServerResource.Tests/HypervResourceController1Test.cs b/plugins/hypervisors/hyperv/DotNet/ServerResource/ServerResource.Tests/HypervResourceController1Test.cs index 87a12c977d2..91d41e63b9b 100644 --- a/plugins/hypervisors/hyperv/DotNet/ServerResource/ServerResource.Tests/HypervResourceController1Test.cs +++ b/plugins/hypervisors/hyperv/DotNet/ServerResource/ServerResource.Tests/HypervResourceController1Test.cs @@ -217,7 +217,7 @@ namespace ServerResource.Tests { testSampleVolumeTempURIJSON = "\"storagepool\""; // Arrange - String destoryCmd = //"{\"volume\":" + getSampleVolumeObjectTO() + "}"; + String destroyCmd = //"{\"volume\":" + getSampleVolumeObjectTO() + "}"; "{\"volume\":{\"name\":\"" + testSampleVolumeTempUUIDNoExt + "\",\"storagePoolType\":\"Filesystem\"," + "\"mountPoint\":" @@ -233,15 +233,15 @@ namespace ServerResource.Tests HypervResourceController rsrcServer = new HypervResourceController(); HypervResourceController.wmiCallsV2 = wmiCallsV2; - dynamic jsonDestoryCmd = JsonConvert.DeserializeObject(destoryCmd); + dynamic jsonDestroyCmd = JsonConvert.DeserializeObject(destroyCmd); // Act - dynamic destoryAns = rsrcServer.DestroyCommand(jsonDestoryCmd); + dynamic destroyAns = rsrcServer.DestroyCommand(jsonDestroyCmd); // Assert - JObject ansAsProperty2 = destoryAns[0]; + JObject ansAsProperty2 = destroyAns[0]; dynamic ans = ansAsProperty2.GetValue(CloudStackTypes.Answer); - String path = jsonDestoryCmd.volume.path; + String path = jsonDestroyCmd.volume.path; Assert.True((bool)ans.result, "DestroyCommand did not succeed " + ans.details); Assert.True(!File.Exists(path), "Failed to delete file " + path); } diff --git a/plugins/hypervisors/hyperv/DotNet/ServerResource/ServerResource.Tests/HypervResourceControllerTest.cs b/plugins/hypervisors/hyperv/DotNet/ServerResource/ServerResource.Tests/HypervResourceControllerTest.cs index fab1b8243b2..7f03e151253 100644 --- a/plugins/hypervisors/hyperv/DotNet/ServerResource/ServerResource.Tests/HypervResourceControllerTest.cs +++ b/plugins/hypervisors/hyperv/DotNet/ServerResource/ServerResource.Tests/HypervResourceControllerTest.cs @@ -232,7 +232,7 @@ namespace ServerResource.Tests { // Arrange String sampleVolume = getSampleVolumeObjectTO(); - String destoryCmd = //"{\"volume\":" + getSampleVolumeObjectTO() + "}"; + String destroyCmd = //"{\"volume\":" + getSampleVolumeObjectTO() + "}"; "{\"volume\":{\"name\":\"" + testSampleVolumeTempUUIDNoExt + "\",\"storagePoolType\":\"Filesystem\"," + "\"mountPoint\":" @@ -243,15 +243,15 @@ namespace ServerResource.Tests + "\"type\":\"ROOT\",\"id\":9,\"size\":0}}"; HypervResourceController rsrcServer = new HypervResourceController(); - dynamic jsonDestoryCmd = JsonConvert.DeserializeObject(destoryCmd); + dynamic jsonDestroyCmd = JsonConvert.DeserializeObject(destroyCmd); // Act - dynamic destoryAns = rsrcServer.DestroyCommand(jsonDestoryCmd); + dynamic destroyAns = rsrcServer.DestroyCommand(jsonDestroyCmd); // Assert - JObject ansAsProperty2 = destoryAns[0]; + JObject ansAsProperty2 = destroyAns[0]; dynamic ans = ansAsProperty2.GetValue(CloudStackTypes.Answer); - String path = jsonDestoryCmd.volume.path; + String path = jsonDestroyCmd.volume.path; Assert.True((bool)ans.result, "DestroyCommand did not succeed " + ans.details); Assert.True(!File.Exists(path), "Failed to delete file " + path); } diff --git a/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/KVMGuestOsMapper.java b/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/KVMGuestOsMapper.java index 11d1e166f05..1cf74501770 100644 --- a/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/KVMGuestOsMapper.java +++ b/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/KVMGuestOsMapper.java @@ -107,7 +107,7 @@ public class KVMGuestOsMapper { s_mapper.put("Windows Server 2003 Standard Edition(32-bit)", "Windows Server 2003"); s_mapper.put("Windows Server 2003 Standard Edition(64-bit)", "Windows Server 2003"); s_mapper.put("Windows Server 2003 Web Edition", "Windows Server 2003"); - s_mapper.put("Microsoft Small Bussiness Server 2003", "Windows Server 2003"); + s_mapper.put("Microsoft Small Business Server 2003", "Windows Server 2003"); s_mapper.put("Windows Server 2008 (32-bit)", "Windows Server 2008"); s_mapper.put("Windows Server 2008 (64-bit)", "Windows Server 2008"); s_mapper.put("Windows Server 2008 R2 (64-bit)", "Windows Server 2008"); diff --git a/plugins/hypervisors/ovm/src/main/scripts/vm/hypervisor/ovm/OvmVolumeModule.py b/plugins/hypervisors/ovm/src/main/scripts/vm/hypervisor/ovm/OvmVolumeModule.py index 0723276e9a2..d2152b1c806 100755 --- a/plugins/hypervisors/ovm/src/main/scripts/vm/hypervisor/ovm/OvmVolumeModule.py +++ b/plugins/hypervisors/ovm/src/main/scripts/vm/hypervisor/ovm/OvmVolumeModule.py @@ -100,7 +100,7 @@ class OvmVolume(OvmObject): priStorageMountPoint = sr.mountpoint volDir = join(priStorageMountPoint, 'running_pool', volDirUuid) if exists(volDir): - raise Exception("Volume dir %s alreay existed, can not override"%volDir) + raise Exception("Volume dir %s already existed, can not override"%volDir) os.makedirs(volDir) OvmStoragePool()._checkDirSizeForImage(volDir, templateUrl) volName = volUuid + '.raw' diff --git a/plugins/hypervisors/xenserver/src/main/java/com/cloud/hypervisor/xenserver/resource/CitrixResourceBase.java b/plugins/hypervisors/xenserver/src/main/java/com/cloud/hypervisor/xenserver/resource/CitrixResourceBase.java index 8db5a1159f8..90473705a53 100644 --- a/plugins/hypervisors/xenserver/src/main/java/com/cloud/hypervisor/xenserver/resource/CitrixResourceBase.java +++ b/plugins/hypervisors/xenserver/src/main/java/com/cloud/hypervisor/xenserver/resource/CitrixResourceBase.java @@ -1581,7 +1581,7 @@ public abstract class CitrixResourceBase extends ServerResourceBase implements S try { final Set vdis = VDI.getByNameLabel(conn, nameLabel); if (vdis.size() != 1) { - s_logger.warn("destoryVDIbyNameLabel failed due to there are " + vdis.size() + " VDIs with name " + nameLabel); + s_logger.warn("destroyVDIbyNameLabel failed due to there are " + vdis.size() + " VDIs with name " + nameLabel); return; } for (final VDI vdi : vdis) { @@ -3199,7 +3199,7 @@ public abstract class CitrixResourceBase extends ServerResourceBase implements S // constraint // for // stability - if (dynamicMaxRam > staticMax) { // XS contraint that dynamic max <= + if (dynamicMaxRam > staticMax) { // XS constraint that dynamic max <= // static max s_logger.warn("dynamic max " + toHumanReadableSize(dynamicMaxRam) + " can't be greater than static max " + toHumanReadableSize(staticMax) + ", this can lead to stability issues. Setting static max as much as dynamic max "); return dynamicMaxRam; @@ -3213,7 +3213,7 @@ public abstract class CitrixResourceBase extends ServerResourceBase implements S return dynamicMinRam; } - if (dynamicMinRam < recommendedValue) { // XS contraint that dynamic min + if (dynamicMinRam < recommendedValue) { // XS constraint that dynamic min // > static min s_logger.warn("Vm ram is set to dynamic min " + toHumanReadableSize(dynamicMinRam) + " and is less than the recommended static min " + toHumanReadableSize(recommendedValue) + ", this could lead to stability issues"); } @@ -4589,7 +4589,7 @@ public abstract class CitrixResourceBase extends ServerResourceBase implements S removeSR(conn, sr); return; } catch (XenAPIException | XmlRpcException e) { - s_logger.warn(logX(sr, "Unable to get current opertions " + e.toString()), e); + s_logger.warn(logX(sr, "Unable to get current operations " + e.toString()), e); } String msg = "Remove SR failed"; s_logger.warn(msg); @@ -4684,9 +4684,9 @@ public abstract class CitrixResourceBase extends ServerResourceBase implements S removeSR(conn, sr); return null; } catch (final XenAPIException e) { - s_logger.warn(logX(sr, "Unable to get current opertions " + e.toString()), e); + s_logger.warn(logX(sr, "Unable to get current operations " + e.toString()), e); } catch (final XmlRpcException e) { - s_logger.warn(logX(sr, "Unable to get current opertions " + e.getMessage()), e); + s_logger.warn(logX(sr, "Unable to get current operations " + e.getMessage()), e); } final String msg = "Remove SR failed"; s_logger.warn(msg); diff --git a/plugins/hypervisors/xenserver/src/main/java/com/cloud/hypervisor/xenserver/resource/XenServerStorageProcessor.java b/plugins/hypervisors/xenserver/src/main/java/com/cloud/hypervisor/xenserver/resource/XenServerStorageProcessor.java index 7c289de80c7..cb226ed7d9b 100644 --- a/plugins/hypervisors/xenserver/src/main/java/com/cloud/hypervisor/xenserver/resource/XenServerStorageProcessor.java +++ b/plugins/hypervisors/xenserver/src/main/java/com/cloud/hypervisor/xenserver/resource/XenServerStorageProcessor.java @@ -633,7 +633,7 @@ public class XenServerStorageProcessor implements StorageProcessor { try { final Set vdis = VDI.getByNameLabel(conn, nameLabel); if (vdis.size() != 1) { - s_logger.warn("destoryVDIbyNameLabel failed due to there are " + vdis.size() + " VDIs with name " + nameLabel); + s_logger.warn("destroyVDIbyNameLabel failed due to there are " + vdis.size() + " VDIs with name " + nameLabel); return; } for (final VDI vdi : vdis) { diff --git a/plugins/storage/volume/cloudbyte/src/main/java/org/apache/cloudstack/storage/datastore/util/ElastistorUtil.java b/plugins/storage/volume/cloudbyte/src/main/java/org/apache/cloudstack/storage/datastore/util/ElastistorUtil.java index 2a272655ada..2f2ad259d6c 100644 --- a/plugins/storage/volume/cloudbyte/src/main/java/org/apache/cloudstack/storage/datastore/util/ElastistorUtil.java +++ b/plugins/storage/volume/cloudbyte/src/main/java/org/apache/cloudstack/storage/datastore/util/ElastistorUtil.java @@ -244,7 +244,7 @@ public class ElastistorUtil { if (listAccountResponse.getAccounts().getCount() != 0) { int i; - // check weather a account in elasticenter with given Domain name is + // check whether an account in elasticenter with given Domain name is // already present in the list of accounts for (i = 0; i < listAccountResponse.getAccounts().getCount(); i++) { if (domainName.equals(listAccountResponse.getAccounts().getAccount(i).getName())) { diff --git a/plugins/storage/volume/datera/src/main/java/org/apache/cloudstack/storage/datastore/util/DateraUtil.java b/plugins/storage/volume/datera/src/main/java/org/apache/cloudstack/storage/datastore/util/DateraUtil.java index baadd132f20..a1084bf9a40 100644 --- a/plugins/storage/volume/datera/src/main/java/org/apache/cloudstack/storage/datastore/util/DateraUtil.java +++ b/plugins/storage/volume/datera/src/main/java/org/apache/cloudstack/storage/datastore/util/DateraUtil.java @@ -943,7 +943,7 @@ public class DateraUtil { } /** - * Checks wether a host initiator is present in an initiator group + * Checks whether a host initiator is present in an initiator group * * @param initiator Host initiator to check * @param initiatorGroup the initiator group diff --git a/plugins/storage/volume/default/src/main/java/org/apache/cloudstack/storage/datastore/driver/CloudStackPrimaryDataStoreDriverImpl.java b/plugins/storage/volume/default/src/main/java/org/apache/cloudstack/storage/datastore/driver/CloudStackPrimaryDataStoreDriverImpl.java index 4453906d2aa..19a6fe13281 100644 --- a/plugins/storage/volume/default/src/main/java/org/apache/cloudstack/storage/datastore/driver/CloudStackPrimaryDataStoreDriverImpl.java +++ b/plugins/storage/volume/default/src/main/java/org/apache/cloudstack/storage/datastore/driver/CloudStackPrimaryDataStoreDriverImpl.java @@ -255,7 +255,7 @@ public class CloudStackPrimaryDataStoreDriverImpl implements PrimaryDataStoreDri } } } catch (Exception ex) { - s_logger.debug("Unable to destoy volume" + data.getId(), ex); + s_logger.debug("Unable to destroy volume" + data.getId(), ex); result.setResult(ex.toString()); } callback.complete(result); diff --git a/scripts/vm/hypervisor/xenserver/cloud-plugin-storage b/scripts/vm/hypervisor/xenserver/cloud-plugin-storage index d28c19543bd..01a4cdd21b2 100644 --- a/scripts/vm/hypervisor/xenserver/cloud-plugin-storage +++ b/scripts/vm/hypervisor/xenserver/cloud-plugin-storage @@ -105,7 +105,7 @@ def manageAvailability(path, value): return -def checkVolumeAvailablility(path): +def checkVolumeAvailability(path): try: if not isVolumeAvailable(path): # The VHD file is not available on XenSever. The volume is probably @@ -172,7 +172,7 @@ def getParentOfSnapshot(snapshotUuid, primarySRPath, isISCSI): baseCopyUuid = '' if isISCSI: - checkVolumeAvailablility(snapshotPath) + checkVolumeAvailability(snapshotPath) baseCopyUuid = scanParent(snapshotPath) else: baseCopyUuid = getParent(snapshotPath, isISCSI) diff --git a/scripts/vm/hypervisor/xenserver/vmops b/scripts/vm/hypervisor/xenserver/vmops index 0d82a9d2116..4f78a3c90f8 100755 --- a/scripts/vm/hypervisor/xenserver/vmops +++ b/scripts/vm/hypervisor/xenserver/vmops @@ -769,7 +769,7 @@ def add_to_ipset(ipsetname, ips, action): logging.debug("vm ip " + ip) util.pread2(['ipset', action, ipsetname, ip]) except: - logging.debug("vm ip alreday in ip set" + ip) + logging.debug("vm ip already in ip set" + ip) continue return result @@ -1023,7 +1023,7 @@ def network_rules_for_rebooted_vm(session, vmName): [vm_ip, vm_mac] = get_vm_mac_ip_from_log(vmchain) default_arp_antispoof(vmchain, vifs, vm_ip, vm_mac) - #check wether the vm has secondary ips + #check whether the vm has secondary ips if is_secondary_ips_set(vm_name) == True: vmips = get_vm_sec_ips(vm_name) #add arp rules for the secondaryp ip diff --git a/scripts/vm/hypervisor/xenserver/vmopsSnapshot b/scripts/vm/hypervisor/xenserver/vmopsSnapshot index d4cd4b98210..0d5fcc184c5 100755 --- a/scripts/vm/hypervisor/xenserver/vmopsSnapshot +++ b/scripts/vm/hypervisor/xenserver/vmopsSnapshot @@ -190,7 +190,7 @@ def isfile(path, isISCSI): errMsg = '' exists = True if isISCSI: - exists = checkVolumeAvailablility(path) + exists = checkVolumeAvailability(path) else: exists = os.path.isfile(path) @@ -269,7 +269,7 @@ def getParentOfSnapshot(snapshotUuid, primarySRPath, isISCSI): baseCopyUuid = '' if isISCSI: - checkVolumeAvailablility(snapshotPath) + checkVolumeAvailability(snapshotPath) baseCopyUuid = scanParent(snapshotPath) else: baseCopyUuid = getParent(snapshotPath, isISCSI) @@ -439,7 +439,7 @@ def manageAvailability(path, value): return -def checkVolumeAvailablility(path): +def checkVolumeAvailability(path): try: if not isVolumeAvailable(path): # The VHD file is not available on XenSever. The volume is probably diff --git a/server/src/main/java/com/cloud/configuration/Config.java b/server/src/main/java/com/cloud/configuration/Config.java index f1b58360618..2d677042b62 100644 --- a/server/src/main/java/com/cloud/configuration/Config.java +++ b/server/src/main/java/com/cloud/configuration/Config.java @@ -1729,7 +1729,7 @@ public enum Config { String.class, "baremetal.ipmi.fail.retry", "5", - "ipmi interface will be temporary out of order after power opertions(e.g. cycle, on), it leads following commands fail immediately. The value specifies retry times before accounting it as real failure", + "ipmi interface will be temporary out of order after power operations(e.g. cycle, on), it leads following commands fail immediately. The value specifies retry times before accounting it as real failure", null), ApiLimitEnabled("Advanced", ManagementServer.class, Boolean.class, "api.throttling.enabled", "false", "Enable/disable Api rate limit", null), diff --git a/server/src/main/java/com/cloud/network/NetworkServiceImpl.java b/server/src/main/java/com/cloud/network/NetworkServiceImpl.java index 4d439ceda43..c29d3f55813 100644 --- a/server/src/main/java/com/cloud/network/NetworkServiceImpl.java +++ b/server/src/main/java/com/cloud/network/NetworkServiceImpl.java @@ -5118,7 +5118,7 @@ public class NetworkServiceImpl extends ManagerBase implements NetworkService, C List ssvms = _stnwMgr.getSSVMWithNoStorageNetwork(network.getDataCenterId()); if (!ssvms.isEmpty()) { StringBuilder sb = new StringBuilder("Cannot add " + trafficType - + " traffic type as there are below secondary storage vm still running. Please stop them all and add Storage traffic type again, then destory them all to allow CloudStack recreate them with storage network(If you have added storage network ip range)"); + + " traffic type as there are below secondary storage vm still running. Please stop them all and add Storage traffic type again, then destroy them all to allow CloudStack recreate them with storage network(If you have added storage network ip range)"); sb.append("SSVMs:"); for (SecondaryStorageVmVO ssvm : ssvms) { sb.append(ssvm.getInstanceName()).append(":").append(ssvm.getState()); diff --git a/server/src/main/java/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java b/server/src/main/java/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java index a0e8a2a2f0d..d49322bde60 100644 --- a/server/src/main/java/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java +++ b/server/src/main/java/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java @@ -2533,7 +2533,7 @@ Configurable, StateListener - + diff --git a/usage/src/test/resources/cloud2.xml b/usage/src/test/resources/cloud2.xml index 099dde5737c..e8190b13984 100644 --- a/usage/src/test/resources/cloud2.xml +++ b/usage/src/test/resources/cloud2.xml @@ -11,7 +11,7 @@ - + diff --git a/utils/src/test/java/com/cloud/utils/net/Ip4AddressTest.java b/utils/src/test/java/com/cloud/utils/net/Ip4AddressTest.java index 79ff238785a..63a5216fed8 100644 --- a/utils/src/test/java/com/cloud/utils/net/Ip4AddressTest.java +++ b/utils/src/test/java/com/cloud/utils/net/Ip4AddressTest.java @@ -33,8 +33,8 @@ public class Ip4AddressTest { @Test public void testIsSameAddressAs() { - Assert.assertTrue("1 and one should be considdered the same address", new Ip4Address(1L, 5L).isSameAddressAs("0.0.0.1")); - Assert.assertFalse("zero and 0L should be considdered the same address but a Long won't be accepted", new Ip4Address("0.0.0.0", "00:00:00:00:00:08").isSameAddressAs(0L)); + Assert.assertTrue("1 and one should be considered the same address", new Ip4Address(1L, 5L).isSameAddressAs("0.0.0.1")); + Assert.assertFalse("zero and 0L should be considered the same address but a Long won't be accepted", new Ip4Address("0.0.0.0", "00:00:00:00:00:08").isSameAddressAs(0L)); } } diff --git a/utils/src/test/java/com/cloud/utils/net/IpTest.java b/utils/src/test/java/com/cloud/utils/net/IpTest.java index 89608f1967f..3ff729351bc 100644 --- a/utils/src/test/java/com/cloud/utils/net/IpTest.java +++ b/utils/src/test/java/com/cloud/utils/net/IpTest.java @@ -56,8 +56,8 @@ public class IpTest { @Test public void testIsSameAddressAs() { - Assert.assertTrue("1 and one should be considdered the same address", new Ip(1L).isSameAddressAs("0.0.0.1")); - Assert.assertTrue("zero and 0L should be considdered the same address", new Ip("0.0.0.0").isSameAddressAs(0L)); + Assert.assertTrue("1 and one should be considered the same address", new Ip(1L).isSameAddressAs("0.0.0.1")); + Assert.assertTrue("zero and 0L should be considered the same address", new Ip("0.0.0.0").isSameAddressAs(0L)); } }