@@ -1012,7 +1012,7 @@ public UserVm resetVMSSHKey(ResetVMSSHKeyCmd cmd) throws ResourceUnavailableExce
10121012 }
10131013
10141014 if (cmd .getNames () == null || cmd .getNames ().isEmpty ()) {
1015- throw new InvalidParameterValueException ("'keypair' or 'keyparis ' must be specified" );
1015+ throw new InvalidParameterValueException ("'keypair' or 'keypairs ' must be specified" );
10161016 }
10171017
10181018 String keypairnames = "" ;
@@ -1021,7 +1021,7 @@ public UserVm resetVMSSHKey(ResetVMSSHKeyCmd cmd) throws ResourceUnavailableExce
10211021
10221022 pairs = _sshKeyPairDao .findByNames (owner .getAccountId (), owner .getDomainId (), cmd .getNames ());
10231023 if (pairs == null || pairs .size () != cmd .getNames ().size ()) {
1024- throw new InvalidParameterValueException ("Not all specified keyparis exist" );
1024+ throw new InvalidParameterValueException ("Not all specified keypairs exist" );
10251025 }
10261026 sshPublicKeys = pairs .stream ().map (p -> p .getPublicKey ()).collect (Collectors .joining ("\n " ));
10271027 keypairnames = String .join ("," , cmd .getNames ());
@@ -4209,7 +4209,7 @@ private UserVm getUncheckedUserVmResource(DataCenter zone, String hostName, Stri
42094209 if (!sshKeyPairs .isEmpty ()) {
42104210 List <SSHKeyPairVO > pairs = _sshKeyPairDao .findByNames (owner .getAccountId (), owner .getDomainId (), sshKeyPairs );
42114211 if (pairs == null || pairs .size () != sshKeyPairs .size ()) {
4212- throw new InvalidParameterValueException ("Not all specified keyparis exist" );
4212+ throw new InvalidParameterValueException ("Not all specified keypairs exist" );
42134213 }
42144214
42154215 sshPublicKeys = pairs .stream ().map (p -> p .getPublicKey ()).collect (Collectors .joining ("\n " ));
0 commit comments