fix: baremetal-event-list support since/until filter

This commit is contained in:
Qiu Jian
2019-11-05 22:31:59 +08:00
parent 29502b9e58
commit 4e46db8bb0
2 changed files with 14 additions and 19 deletions
+2
View File
@@ -30,6 +30,8 @@ func init() {
PagingMarker string `help:"marker for pagination"`
Limit int `help:"page limit, default 20" default:"20"`
Severity string `help:"filter by severity"`
Since string `help:"Show logs since specific date" metavar:"DATETIME"`
Until string `help:"Show logs until specific date" metavar:"DATETIME"`
}
R(&BaremetalEventListOptions{}, "baremetal-event-list", "List baremetal events", func(s *mcclient.ClientSession, args *BaremetalEventListOptions) error {
params := jsonutils.Marshal(args)