HomeClusterLabs Projects

Refactor: python: Improve arguments passed to Process.__init__.

Description

Refactor: python: Improve arguments passed to Process.init.

  • Get rid of the triggers_reboot argument. It's unused except in a single debug logging statement, and appears to always be False.
  • Get rid of the process argument. This is never passed - only name is. We can use that for both purposes. Also stop calling str() on name. It's only ever given a string in the first place.
  • Callers should pass a boolean for dc_only.
  • Don't use an empty list as the default argument. Instead, use None and then set each variable to an empty list if None is passed.

Details

Provenance
clumensAuthored on Apr 6 2023, 11:45 AM
Parents
rP1011676be480: Refactor: python: Rename variables in CTS.run.
Branches
Unknown
Tags
Unknown