manageiq_alert_profiles: improve handling param requirements (#9449)

* manageiq_alert_profiles: improve handling param requirements

Basically two changes:
* `name` is already required when state is either present or absent, and there are no other states, so making it fully required and removing the conditional
* `alerts` is documented as required when state=present, this has been verified in the code, so added that parameter to the existing `required_if` spec.

* add changelog frag
This commit is contained in:
Alexei Znamensky
2024-12-30 07:44:32 +13:00
committed by GitHub
parent 5f47127ef7
commit 0bbc3eccd9
2 changed files with 7 additions and 8 deletions

View File

@@ -0,0 +1,2 @@
minor_changes:
- manageiq_alert_profiles - improve handling of parameter requirements (https://github.com/ansible-collections/community.general/pull/9449).