From e178abb501661559d78a1f9ee15b563cc7a2b4e1 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Fri, 22 May 2015 23:11:13 +0300 Subject: [PATCH] typo fix in oneliners Signed-off-by: Igor Gnatenko --- lib/ansible/modules/extras/packaging/os/dnf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/packaging/os/dnf.py b/lib/ansible/modules/extras/packaging/os/dnf.py index 89988ea9763..be83d4b3840 100644 --- a/lib/ansible/modules/extras/packaging/os/dnf.py +++ b/lib/ansible/modules/extras/packaging/os/dnf.py @@ -226,8 +226,8 @@ def ensure(module, state, pkgspec, conf_file, enablerepo, disablerepo, disable_g else: my.download_packages(my.transaction.install_set) my.do_transaction() - [res['results'].append('Installed: %s' % pkg) for pkg in my.transaction.install_set) - [res['results'].append('Removed: %s' % pkg) for pkg in my.transaction.remove_set) + [res['results'].append('Installed: %s' % pkg) for pkg in my.transaction.install_set] + [res['results'].append('Removed: %s' % pkg) for pkg in my.transaction.remove_set] module.exit_json(**res)