From 6f2a8553ee3f7af1a6a5543567439799f3fc92d3 Mon Sep 17 00:00:00 2001 From: munchtoast Date: Wed, 16 Jul 2025 14:58:24 -0400 Subject: [PATCH] Apply code review suggestions --- plugins/modules/pacemaker_stonith.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/plugins/modules/pacemaker_stonith.py b/plugins/modules/pacemaker_stonith.py index 3d5f3e0985..d6982f5cad 100644 --- a/plugins/modules/pacemaker_stonith.py +++ b/plugins/modules/pacemaker_stonith.py @@ -13,9 +13,13 @@ module: pacemaker_stonith short_description: Manage pacemaker STONITH author: - Dexter Le (@munchtoast) -version_added: 11.1.0 +version_added: 11.2.0 description: - This module manages STONITH in a Pacemaker cluster using the pacemaker CLI. +seealso: + - name: Pacemaker STONITH documentation + description: Complete documentation for Pacemaker STONITH. + link: https://clusterlabs.org/projects/pacemaker/doc/3.0/Pacemaker_Explained/html/resources.html#stonith extends_documentation_fragment: - community.general.attributes attributes: @@ -122,8 +126,7 @@ from ansible_collections.community.general.plugins.module_utils.pacemaker import class PacemakerStonith(StateModuleHelper): module = dict( argument_spec=dict( - state=dict(type='str', default='present', choices=[ - 'present', 'absent', 'enabled', 'disabled']), + state=dict(type='str', default='present', choices=['present', 'absent', 'enabled', 'disabled']), name=dict(type='str', required=True), stonith_type=dict(type='str'), stonith_options=dict(type='list', elements='str', default=[]),