mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
feat(win_pkg): add debug logging for win_pkg.remove
This commit is contained in:
parent
0d2b934823
commit
6fe80c9ee6
1 changed files with 3 additions and 0 deletions
|
@ -2154,6 +2154,8 @@ def remove(name=None, pkgs=None, **kwargs):
|
|||
# Uninstall the software
|
||||
changed.append(pkgname)
|
||||
# Check Use Scheduler Option
|
||||
log.debug("PKG : cmd: %s /s /c %s", cmd_shell, arguments)
|
||||
log.debug("PKG : pwd: %s", cache_path)
|
||||
if pkginfo[target].get("use_scheduler", False):
|
||||
# Create Scheduled Task
|
||||
__salt__["task.create_task"](
|
||||
|
@ -2184,6 +2186,7 @@ def remove(name=None, pkgs=None, **kwargs):
|
|||
python_shell=False,
|
||||
redirect_stderr=True,
|
||||
)
|
||||
log.debug("PKG : retcode: %s", result["retcode"])
|
||||
if not result["retcode"]:
|
||||
ret[pkgname] = {"uninstall status": "success"}
|
||||
changed.append(pkgname)
|
||||
|
|
Loading…
Add table
Reference in a new issue