From e8b1d2705787db36f2b4126828c5c94c9a30c7c7 Mon Sep 17 00:00:00 2001 From: Patrik Lundin Date: Thu, 30 Jun 2016 00:38:57 +0200 Subject: [PATCH] openbsd_pkg: no need to call .rstrip. --- lib/ansible/modules/extras/packaging/os/openbsd_pkg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/packaging/os/openbsd_pkg.py b/lib/ansible/modules/extras/packaging/os/openbsd_pkg.py index ff9ef672ca..305b7c0645 100644 --- a/lib/ansible/modules/extras/packaging/os/openbsd_pkg.py +++ b/lib/ansible/modules/extras/packaging/os/openbsd_pkg.py @@ -114,7 +114,7 @@ def get_package_state(name, pkg_spec, module): if stdout: # If the requested package name is just a stem, like "python", we may # find multiple packages with that name. - pkg_spec['installed_names'] = [line.rstrip() for line in stdout.splitlines()] + pkg_spec['installed_names'] = [name for name in stdout.splitlines()] module.debug("get_package_state(): installed_names = %s" % pkg_spec['installed_names']) return True else: