HomeClusterLabs Projects

Refactor: python: Improve stonithdtest.py.

Description

Refactor: python: Improve stonithdtest.py.

  • Disable pylint warnings we can't really do anything about.
  • Use ExitStatus instead of hardcoding a return value.
  • Remove the unused is_dc variable.
  • Simplify how the watchpats list is built.
  • Get rid of an unnecessary elif block.

Details

Provenance
clumensAuthored on May 24 2023, 4:17 PM
Parents
rP74347ead84d9: Refactor: python: Improve comments and whitespace in stonithdtest.py.
Branches
Unknown
Tags
Unknown