GutoVeronezi commented on a change in pull request #5215:
URL: https://github.com/apache/cloudstack/pull/5215#discussion_r694210671
##########
File path:
api/src/main/java/org/apache/cloudstack/api/command/user/vm/ResetVMSSHKeyCmd.java
##########
@@ -78,8 +84,11 @@
/////////////////// Accessors ///////////////////////
/////////////////////////////////////////////////////
- public String getName() {
- return name;
+ public List<String> getNames() {
+ List<String> keypairnames = new ArrayList<String>();
+ if(names != null) { keypairnames = names; }
+ if(name != null && !name.isEmpty()) { keypairnames.add(name); }
Review comment:
According to our [Coding
conventions](https://cwiki.apache.org/confluence/display/CLOUDSTACK/Coding+conventions),
section `Files, Layout and whitespace`, item 7, `if` clauses should be:
```java
if (condition) {
statements;
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]