Skip to content

Commit

Permalink
win_reboot: backport warning message arguments (#37971)
Browse files Browse the repository at this point in the history
* win_reboot: fixed up warning message for dep args (#37898)

(cherry picked from commit c4e7b54)

* Added changelog fragment
  • Loading branch information
jborean93 committed Apr 2, 2018
1 parent d0f1a23 commit c056b8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelogs/fragments/win_reboot-warning-message-fix.yaml
@@ -0,0 +1,3 @@
bugfixes:
- win_reboot - fix deprecated warning message to show version in correct spot
https://github.com/ansible/ansible/pull/37898
2 changes: 1 addition & 1 deletion lib/ansible/plugins/action/win_reboot.py
Expand Up @@ -85,7 +85,7 @@ def run(self, tmp=None, task_vars=None):
}
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))
Expand Down

0 comments on commit c056b8a

Please sign in to comment.