From dad26d70fa0b76ab2948f9e4bef8b68ff4bd2ede Mon Sep 17 00:00:00 2001 From: Edward Torbett Date: Fri, 12 Jun 2015 11:18:14 +0100 Subject: [PATCH] Corrected pkg to pkgs as noted by @abadger --- lib/ansible/modules/packaging/os/yum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/packaging/os/yum.py b/lib/ansible/modules/packaging/os/yum.py index ed28381b4f7..95a3d35db1f 100644 --- a/lib/ansible/modules/packaging/os/yum.py +++ b/lib/ansible/modules/packaging/os/yum.py @@ -663,7 +663,7 @@ def remove(module, items, repoq, yum_basecmd, conf_file, en_repos, dis_repos): if pkgs: # run an actual yum transaction - cmd = yum_basecmd + ["remove"] + pkg + cmd = yum_basecmd + ["remove"] + pkgs if module.check_mode: module.exit_json(changed=True)