Remove deprecation warning caused by automatic role argument spec validation (#85401)

(cherry picked from commit 7216e04139)
pull/85403/head
Sloane Hertel 5 months ago committed by Matt Clay
parent 16999ea4d9
commit 98fd931629

@ -0,0 +1,2 @@
bugfixes:
- Update automatic role argument spec validation to not use deprecated syntax (https://github.com/ansible/ansible/issues/85399).

@ -374,8 +374,8 @@ class Role(Base, Conditional, Taggable, CollectionSearch, Delegatable):
task_name = task_name + ' - ' + argument_spec['short_description']
return {
'action': {
'module': 'ansible.builtin.validate_argument_spec',
'action': 'ansible.builtin.validate_argument_spec',
'args': {
# Pass only the 'options' portion of the arg spec to the module.
'argument_spec': argument_spec.get('options', {}),
'provided_arguments': self._role_params,

Loading…
Cancel
Save