summaryrefslogtreecommitdiff
path: root/packaging/os
diff options
context:
space:
mode:
authorPatrik Lundin <patrik@sigterm.se>2016-06-30 00:38:57 +0200
committerPatrik Lundin <patrik@sigterm.se>2016-06-30 00:40:28 +0200
commit7dcac77df5ea7f7d4ad3ce785a26472e65d8ff07 (patch)
treee87f1a80a87c60ee9ee4fccca6ac140c17391619 /packaging/os
parentf4b40926b4f8bb847b950ba832f96b0860021725 (diff)
downloadansible-modules-extras-7dcac77df5ea7f7d4ad3ce785a26472e65d8ff07.tar.gz
openbsd_pkg: no need to call .rstrip.
Diffstat (limited to 'packaging/os')
-rw-r--r--packaging/os/openbsd_pkg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/os/openbsd_pkg.py b/packaging/os/openbsd_pkg.py
index ff9ef672..305b7c06 100644
--- a/packaging/os/openbsd_pkg.py
+++ b/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: