From 52ef2fca06c2dfce3f266bd8a44517412b05f301 Mon Sep 17 00:00:00 2001 From: Sheng Yang Date: Fri, 20 Jan 2012 08:03:49 +0800 Subject: [PATCH] bug 12988: Fix typo status 12988: resolved fixed --- server/src/com/cloud/network/NetworkManagerImpl.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/src/com/cloud/network/NetworkManagerImpl.java b/server/src/com/cloud/network/NetworkManagerImpl.java index 7a0a474b4fb..1b8ebf5bbc7 100755 --- a/server/src/com/cloud/network/NetworkManagerImpl.java +++ b/server/src/com/cloud/network/NetworkManagerImpl.java @@ -725,7 +725,7 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag } // Since it's non-conserve mode, only one service should used for IP if (services.size() != 1) { - throw new InvalidParameterException("There are multiply services used ip " + ip.getAddress() + "."); + throw new InvalidParameterException("There are multiple services used ip " + ip.getAddress() + "."); } if (service != null && !((Service)services.toArray()[0] == service || service.equals(Service.Firewall))) { throw new InvalidParameterException("The IP " + ip.getAddress() + " is already used as " + ((Service)services.toArray()[0]).getName() + " rather than " + service.getName()); @@ -760,9 +760,9 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag provider = curProvider; continue; } - //We don't support multiply providers for one service now + //We don't support multiple providers for one service now if (!provider.equals(curProvider)) { - throw new InvalidParameterException("There would be multiply providers for IP " + ip.getAddress() + " with the new network offering!"); + throw new InvalidParameterException("There would be multiple providers for IP " + ip.getAddress() + " with the new network offering!"); } } } @@ -788,7 +788,7 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag } Provider newProvider = (Provider)newProviders.toArray()[0]; if (!oldProvider.equals(newProvider)) { - throw new InvalidParameterException("There would be multiply providers for IP " + publicIp.getAddress() + "!"); + throw new InvalidParameterException("There would be multiple providers for IP " + publicIp.getAddress() + "!"); } return true; } @@ -801,7 +801,7 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag for (PublicIp ip : ipToServices.keySet()) { Set services = ipToServices.get(ip); if (services != null && services.size() > 1) { - throw new CloudRuntimeException("Ip " + ip.getAddress() + " is used by multiply services!"); + throw new CloudRuntimeException("Ip " + ip.getAddress() + " is used by multiple services!"); } } }