Skip to content

Commit 361e522

Browse files
DaanHooglandhsato03
andcommitted
Apply suggestions from code review
Co-authored-by: Henrique Sato <henriquesato2003@gmail.com>
1 parent 5aa4b04 commit 361e522

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/com/cloud/network/vpn/Site2SiteVpnManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,9 +335,9 @@ private Site2SiteVpnGateway getAndValidateSite2SiteVpnGateway(Long vpnGatewayId,
335335
return vpnGateway;
336336
}
337337

338-
private static void validateVpnConnectionOfTheRightAccount(Site2SiteCustomerGateway customerGateway, Site2SiteVpnGateway vpnGateway) {
338+
private void validateVpnConnectionOfTheRightAccount(Site2SiteCustomerGateway customerGateway, Site2SiteVpnGateway vpnGateway) {
339339
if (customerGateway.getAccountId() != vpnGateway.getAccountId() || customerGateway.getDomainId() != vpnGateway.getDomainId()) {
340-
throw new InvalidParameterValueException("VPN connection can only be esitablished between same account's VPN gateway and customer gateway!");
340+
throw new InvalidParameterValueException("VPN connection can only be established between same account's VPN gateway and customer gateway!");
341341
}
342342
}
343343

0 commit comments

Comments
 (0)