diff options
author | Patrik Lundin <patrik@sigterm.se> | 2016-06-30 00:38:57 +0200 |
---|---|---|
committer | Patrik Lundin <patrik@sigterm.se> | 2016-06-30 00:40:28 +0200 |
commit | 7dcac77df5ea7f7d4ad3ce785a26472e65d8ff07 (patch) | |
tree | e87f1a80a87c60ee9ee4fccca6ac140c17391619 /packaging/os | |
parent | f4b40926b4f8bb847b950ba832f96b0860021725 (diff) | |
download | ansible-modules-extras-7dcac77df5ea7f7d4ad3ce785a26472e65d8ff07.tar.gz |
openbsd_pkg: no need to call .rstrip.
Diffstat (limited to 'packaging/os')
-rw-r--r-- | packaging/os/openbsd_pkg.py | 2 |
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: |