summaryrefslogtreecommitdiff
path: root/packaging/os
diff options
context:
space:
mode:
authorPatrik Lundin <patrik@sigterm.se>2016-06-30 17:30:28 +0200
committerPatrik Lundin <patrik@sigterm.se>2016-06-30 17:30:28 +0200
commitc118bcab5cad9037d6bf31778668799ba899dea3 (patch)
treeae2ad04fb6aa3388da6cbfcb626b5d2a2c86c1dc /packaging/os
parent7dcac77df5ea7f7d4ad3ce785a26472e65d8ff07 (diff)
downloadansible-modules-extras-c118bcab5cad9037d6bf31778668799ba899dea3.tar.gz
Add a break and extra debug log for clarity.
Diffstat (limited to 'packaging/os')
-rw-r--r--packaging/os/openbsd_pkg.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/packaging/os/openbsd_pkg.py b/packaging/os/openbsd_pkg.py
index 305b7c06..2e31d16b 100644
--- a/packaging/os/openbsd_pkg.py
+++ b/packaging/os/openbsd_pkg.py
@@ -229,10 +229,12 @@ def package_latest(name, installed_state, pkg_spec, module):
module.debug("package_latest(): checking for pre-upgrade package name: %s" % installed_name)
match = re.search("\W%s->.+: ok\W" % installed_name, stdout)
if match:
+ module.debug("package_latest(): package name match: %s" % installed_name)
if module.check_mode:
module.exit_json(changed=True)
changed = True
+ break
# FIXME: This part is problematic. Based on the issues mentioned (and
# handled) in package_present() it is not safe to blindly trust stderr