Commit 79f7f0f
authored
server: fix issue while list ssh keypairs by keyword (#3916)
in 4.13, list sshkeypairs with keyword will ignore the search by name if name is specifed
Fixes an issue in #3098
for example,
(local) > list sshkeypairs name=wei keyword=wei filter=name
{
"count": 3,
"sshkeypair": [
{
"name": "wei3"
},
{
"name": "wei2"
},
{
"name": "wei"
}
]
}
with this patch ,it gives correct result.
(local) > list sshkeypairs name=wei keyword=wei filter=name
{
"count": 1,
"sshkeypair": [
{
"name": "wei"
}
]
}1 parent e8d418c commit 79f7f0f
File tree
1 file changed
+4
-2
lines changed- server/src/main/java/com/cloud/server
1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3747 | 3747 | | |
3748 | 3748 | | |
3749 | 3749 | | |
3750 | | - | |
3751 | | - | |
| 3750 | + | |
| 3751 | + | |
| 3752 | + | |
| 3753 | + | |
3752 | 3754 | | |
3753 | 3755 | | |
3754 | 3756 | | |
| |||
0 commit comments