Skip to content

Conversation

@liangxin1300
Copy link
Collaborator

  • Add detection to check if the cluster is already in maintenance mode. If yes, yield True and exit early to avoid resetting the maintenance mode unnecessarily.

  • Introduce docstring to describe the behavior of the leverage_maintenance_mode function.

  • Add proper type hints to the function, specifying it returns a Generator[bool, None, None].

Fix issue #1759

…pe hints

- Add detection to check if the cluster is already in maintenance mode.
  If yes, yield `True` and exit early to avoid resetting the maintenance
mode unnecessarily.

- Introduce docstring to describe the behavior of the
  `leverage_maintenance_mode` function.

- Add proper type hints to the function, specifying it returns a
  `Generator[bool, None, None]`.
@liangxin1300 liangxin1300 marked this pull request as ready for review April 24, 2025 03:52
@liangxin1300 liangxin1300 requested a review from zzhou1 April 24, 2025 03:53
@liangxin1300 liangxin1300 merged commit cafe0a2 into ClusterLabs:master Apr 25, 2025
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants