fix: user filter by role

This commit is contained in:
Qiu Jian
2019-07-04 15:22:58 +08:00
parent 50e00a1bfc
commit 5980430603
2 changed files with 20 additions and 5 deletions
+1
View File
@@ -27,6 +27,7 @@ func init() {
options.BaseListOptions
Name string `help:"Filter by name"`
OrderByDomain string `help:"order by domain name" choices:"asc|desc"`
Role string `help:"Filter by role"`
}
R(&UserListOptions{}, "user-list", "List users", func(s *mcclient.ClientSession, args *UserListOptions) error {
params, err := options.ListStructToParams(args)