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

pull/85402/head
Sloane Hertel 5 months ago committed by GitHub
parent 54ccad9e46
commit 7216e04139
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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'] task_name = task_name + ' - ' + argument_spec['short_description']
return { return {
'action': { 'action': 'ansible.builtin.validate_argument_spec',
'module': 'ansible.builtin.validate_argument_spec', 'args': {
# Pass only the 'options' portion of the arg spec to the module. # Pass only the 'options' portion of the arg spec to the module.
'argument_spec': argument_spec.get('options', {}), 'argument_spec': argument_spec.get('options', {}),
'provided_arguments': self._role_params, 'provided_arguments': self._role_params,

Loading…
Cancel
Save