community.general/plugins
Ryan Badaï d7edd34ba4
hpilo_boot: fix module failing when trying to power on an already powered-on server (#9646)
* fix: fix hpilo_boot.py module failing when trying to power on an already powered-on server

For this module to be idempotent, it should be successful when trying to reach a power state which is already there.

It was already the case for "poweroff", however when running the module with "boot_once" state, it was failing if the server was already powered_on, which is not an idempotent behavior

* doc: Add changelog fragment

* fix: add flag to run boot_once idempotently without breaking the previous behavior and add deprecation warning

* doc: fix documentation fragment description

* fix unwanted format changes

seems like I had an older version of this module formatted differently or that I had a formatter that automatically ran on this file

* fix linting errors

Removed trailing whitespace line 164

* add missing dash in idempotent_boot_once parameter description

* fix doc issue

* Update changelogs/fragments/9646-hpilo-fix-idempotency.yml

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Update plugins/modules/hpilo_boot.py

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

* Update changelogs/fragments/9646-hpilo-fix-idempotency.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

* comment out module deprecation and change idempotent boot_once parameter description

* Update plugins/modules/hpilo_boot.py

* Update plugins/modules/hpilo_boot.py

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Ryan BADAÏ <ryan.badai@dbi-services.com>
2025-04-10 07:05:35 +02:00
..
action action/become/cache/callback: adjust import __future__ for Python3 (#9583) 2025-01-20 19:36:21 +01:00
become action/become/cache/callback: adjust import __future__ for Python3 (#9583) 2025-01-20 19:36:21 +01:00
cache action/become/cache/callback: adjust import __future__ for Python3 (#9583) 2025-01-20 19:36:21 +01:00
callback Adds option for http agent for user in slack callback (#9836) 2025-03-10 06:33:09 +01:00
connection incus_connection: Allow non-root users to connect to an instance (#9743) 2025-02-17 07:41:17 +01:00
doc_fragments Keycloak modules retry request on authentication error, support refresh token parameter (#9494) 2025-01-26 15:23:39 +01:00
filter misc typo fix (#9812) 2025-02-28 23:10:13 +01:00
inventory NMAP Inventory Plugin: Added option for specifying DNS servers for name resolution (#9849) 2025-03-15 07:37:31 +01:00
lookup bugfix - Prevent passwordstore lookup to create subkey when create == false (#9106) 2025-02-19 21:36:29 +01:00
module_utils cmd_runner_fmt.as_fixed() now accepts list of args (#9893) 2025-03-21 21:04:59 +01:00
modules hpilo_boot: fix module failing when trying to power on an already powered-on server (#9646) 2025-04-10 07:05:35 +02:00
plugin_utils plugins: replace to_native(), to_text(), str() with str() where possible or leave it away in f-string formatting (#9379) 2024-12-28 22:47:18 +01:00
test New Plugins #8594 (#8595) 2024-07-13 13:32:36 +02:00