win_reboot: backport warning message arguments (#37971)
* win_reboot: fixed up warning message for dep args (#37898)
(cherry picked from commit c4e7b54630)
* Added changelog fragment
This commit is contained in:
3
changelogs/fragments/win_reboot-warning-message-fix.yaml
Normal file
3
changelogs/fragments/win_reboot-warning-message-fix.yaml
Normal file
@ -0,0 +1,3 @@
|
||||
bugfixes:
|
||||
- win_reboot - fix deprecated warning message to show version in correct spot
|
||||
https://github.com/ansible/ansible/pull/37898
|
||||
@ -85,7 +85,7 @@ class ActionModule(ActionBase):
|
||||
}
|
||||
for arg, version in deprecated_args.items():
|
||||
if self._task.args.get(arg) is not None:
|
||||
display.warning("Since Ansible %s, %s is no longer used with win_reboot" % (arg, version))
|
||||
display.warning("Since Ansible %s, %s is no longer used with win_reboot" % (version, arg))
|
||||
|
||||
if self._task.args.get('connect_timeout') is not None:
|
||||
connect_timeout = int(self._task.args.get('connect_timeout', self.DEFAULT_CONNECT_TIMEOUT))
|
||||
|
||||
Reference in New Issue
Block a user