diff options
author | cdoern <cdoern@redhat.com> | 2021-08-09 10:07:46 -0400 |
---|---|---|
committer | cdoern <cdoern@redhat.com> | 2021-08-23 12:51:56 -0400 |
commit | d06d285e66251784126b4f19e047c2a93182d08e (patch) | |
tree | 1a1078cc0bca1f2c9fb864dd268c4644e381b8a7 /libpod/events/journal_linux.go | |
parent | 04ab2b16617fe2d3178eb0b461aacbcab609611e (diff) | |
download | podman-d06d285e66251784126b4f19e047c2a93182d08e.tar.gz podman-d06d285e66251784126b4f19e047c2a93182d08e.tar.bz2 podman-d06d285e66251784126b4f19e047c2a93182d08e.zip |
logFile until flag issue
we were adding a negative duration in podman events, causing inputs like
-5s to be correct and 5s to be incorrect.
fixes #11158
Signed-off-by: cdoern <cdoern@redhat.com>
Diffstat (limited to 'libpod/events/journal_linux.go')
-rw-r--r-- | libpod/events/journal_linux.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libpod/events/journal_linux.go b/libpod/events/journal_linux.go index 7006290e9..a3e0d9754 100644 --- a/libpod/events/journal_linux.go +++ b/libpod/events/journal_linux.go @@ -73,13 +73,15 @@ func (e EventJournalD) Read(ctx context.Context, options ReadOptions) error { if err != nil { return errors.Wrapf(err, "failed to parse event filters") } + var untilTime time.Time if len(options.Until) > 0 { - untilTime, err = util.ParseInputTime(options.Until) + untilTime, err = util.ParseInputTime(options.Until, false) if err != nil { return err } } + j, err := sdjournal.NewJournal() if err != nil { return err |