mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-02 04:04:23 -07:00
Add a break and extra debug log for clarity.
This commit is contained in:
parent
e8b1d27057
commit
09b0871f17
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
module.debug("package_latest(): checking for pre-upgrade package name: %s" % installed_name)
|
||||||
match = re.search("\W%s->.+: ok\W" % installed_name, stdout)
|
match = re.search("\W%s->.+: ok\W" % installed_name, stdout)
|
||||||
if match:
|
if match:
|
||||||
|
module.debug("package_latest(): package name match: %s" % installed_name)
|
||||||
if module.check_mode:
|
if module.check_mode:
|
||||||
module.exit_json(changed=True)
|
module.exit_json(changed=True)
|
||||||
|
|
||||||
changed = True
|
changed = True
|
||||||
|
break
|
||||||
|
|
||||||
# FIXME: This part is problematic. Based on the issues mentioned (and
|
# FIXME: This part is problematic. Based on the issues mentioned (and
|
||||||
# handled) in package_present() it is not safe to blindly trust stderr
|
# handled) in package_present() it is not safe to blindly trust stderr
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue