HomeClusterLabs Projects

Refactor: python: Improve handling the setup method.

Description

Refactor: python: Improve handling the setup method.

  • Rename it to _setup, since nothing outside the class calls it.
  • Make sure everything that was being defined in it is actually defined in the init method instead, and give them all private names.
  • Return True/False instead of 1/0.

Details

Provenance
clumensAuthored on Apr 7 2023, 4:07 PM
Parents
rPf4f03b33b5cd: Refactor: python: Rename TestLogging to _test_logging.
Branches
Unknown
Tags
Unknown