community.general icon indicating copy to clipboard operation
community.general copied to clipboard

pacemaker_info: new module and enhance cli_action

Open munchtoast opened this issue 5 months ago • 1 comments

SUMMARY
  • Adds in pacemaker_info module for obtaining pacemaker facts
  • Fixes cli_action in module_utils/pacemaker.py as argument spec
    • As a result, maintenance_runner is removed from pacemaker_resource module
ISSUE TYPE
  • New Module/Plugin Pull Request
  • Refactoring Pull Request
COMPONENT NAME

pacemaker pacemaker_resource pacemaker_info

ADDITIONAL INFORMATION

WIP PR, waiting for #10195 and #10227 . This will be a refactor to remove maintenance related runners to a single runner.


munchtoast avatar Jun 23 '25 19:06 munchtoast

The test ansible-test sanity --test yamllint [explain] failed with 2 errors:

plugins/modules/pacemaker_info.py:33:1: error: EXAMPLES: syntax error: found unexpected end of stream (syntax)
plugins/modules/pacemaker_info.py:33:1: unparsable-with-libyaml: EXAMPLES: while scanning a quoted scalar - found unexpected end of stream

The test ansible-test sanity --test yamllint [explain] failed with 2 errors:

plugins/modules/pacemaker_info.py:33:1: error: EXAMPLES: syntax error: found unexpected end of stream (syntax)
plugins/modules/pacemaker_info.py:33:1: unparsable-with-libyaml: EXAMPLES: while scanning a quoted scalar - found unexpected end of stream

The test ansible-test sanity --test yamllint [explain] failed with 2 errors:

plugins/modules/pacemaker_info.py:33:1: error: EXAMPLES: syntax error: found unexpected end of stream (syntax)
plugins/modules/pacemaker_info.py:33:1: unparsable-with-libyaml: EXAMPLES: while scanning a quoted scalar found unexpected end of stream

The test ansible-test sanity --test pylint [explain] failed with 1 error:

plugins/modules/pacemaker_info.py:50:0: unused-import: Unused import numbers

The test ansible-test sanity --test validate-modules [explain] failed with 1 error:

plugins/modules/pacemaker_info.py:33:1: invalid-examples: EXAMPLES is not valid YAML

The test ansible-test sanity --test validate-modules [explain] failed with 1 error:

plugins/modules/pacemaker_info.py:33:1: invalid-examples: EXAMPLES is not valid YAML

The test ansible-test sanity --test pylint [explain] failed with 1 error:

plugins/modules/pacemaker_info.py:50:0: unused-import: Unused import numbers

The test ansible-test sanity --test validate-modules [explain] failed with 1 error:

plugins/modules/pacemaker_info.py:33:1: invalid-examples: EXAMPLES is not valid YAML

The test ansible-test sanity --test pylint [explain] failed with 1 error:

plugins/modules/pacemaker_info.py:50:0: unused-import: Unused import numbers

click here for bot help

ansibullbot avatar Jun 23 '25 19:06 ansibullbot

Backport to stable-11: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-11/47aec26001caee0103ce18edda24c41abcbfdae9/pr-10291

Backported as https://github.com/ansible-collections/community.general/pull/10584

🤖 @patchback I'm built with octomachinery and my source is open — https://github.com/sanitizers/patchback-github-app.

patchback[bot] avatar Aug 04 '25 18:08 patchback[bot]

@munchtoast thanks for your contribution! @russoz thanks for reviewing!

felixfontein avatar Aug 04 '25 18:08 felixfontein