HomeClusterLabs Projects

Refactor: python: Rename SetStandbyMode to set_standby_mode.

Description

Refactor: python: Rename SetStandbyMode to set_standby_mode.

Also:

  • Return early if the current mode is the same as the mode asked for. Previously, we weren't even using the return value of checking the current mode.
  • Return False if unable to set the mode. Previously, callers were expecting that this was a possibility, but the function never actually returned False.

Details

Provenance
clumensAuthored on Jul 7 2023, 9:44 AM
Parents
rP0af9d8c72dc8: Refactor: python: StataCM should return a boolean.
Branches
Unknown
Tags
Unknown