1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

openbsd_pkg: no need to call .rstrip.

This commit is contained in:
Patrik Lundin 2016-06-30 00:38:57 +02:00 committed by Matt Clay
parent 24eab14695
commit e8b1d27057

View file

@ -114,7 +114,7 @@ def get_package_state(name, pkg_spec, module):
if stdout: if stdout:
# If the requested package name is just a stem, like "python", we may # If the requested package name is just a stem, like "python", we may
# find multiple packages with that name. # 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']) module.debug("get_package_state(): installed_names = %s" % pkg_spec['installed_names'])
return True return True
else: else: