host filter support id field

This commit is contained in:
UlricQin 2020-12-04 18:56:28 +08:00
parent 30b600fe36
commit 82a42f3649
1 changed files with 2 additions and 0 deletions

View File

@ -345,6 +345,8 @@ func resourceBindNode(c *gin.Context) {
if len(ids) == 0 {
bomb("resources not found by %s", "ident")
}
} else if f.Field == "id" {
ids = str.IdsInt64(strings.Join(f.Items, ","))
} else {
bomb("field[%s] not supported", f.Field)
}