HomeClusterLabs Projects

Refactor: cts: Create a new LogKind enum.

Description

Refactor: cts: Create a new LogKind enum.

Instead of relying on magic strings, we can use an enum to accomplish
the same thing. The default is a local file, which has always been the
default if something other than "journal" or "remote" was given, so we
can get rid of various other magic strings that were being used.

Also, LogWatcher.init can use a default value for the kind
parameter, which means we can enforce always having a default, which
means we probably don't need to check for None.

Details

Provenance
clumensAuthored on Apr 5 2023, 12:23 PM
Parents
rP5f85ae66d06c: Refactor: python: Minor cleanups to watcher.py.
Branches
Unknown
Tags
Unknown