mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Further debug statements
This commit is contained in:
parent
9abb43cdcf
commit
24a44edf8c
2 changed files with 7 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
|||
import logging
|
||||
import time
|
||||
|
||||
import packaging.version
|
||||
import psutil
|
||||
|
@ -102,6 +103,9 @@ def test_salt_upgrade_minion(
|
|||
|
||||
# Upgrade Salt from previous version and test
|
||||
install_salt.install(upgrade=True)
|
||||
|
||||
time.sleep(60) # give it some time, DGM
|
||||
|
||||
ret = salt_call_cli.run("--local", "test.version")
|
||||
log.warning(f"DGM test_salt_upgrade_minion, upgrade test_version ret '{ret}'")
|
||||
print(f"DGM test_salt_upgrade_minion, upgrade test_version ret '{ret}'")
|
||||
|
|
|
@ -483,9 +483,9 @@ class SaltPkgInstall:
|
|||
log.debug("Installing: %s", str(pkg))
|
||||
ret = self.proc.run("installer", "-pkg", str(pkg), "-target", "/")
|
||||
self._check_retcode(ret)
|
||||
# Stop the service installed by the installer
|
||||
self.proc.run("launchctl", "disable", f"system/{service_name}")
|
||||
self.proc.run("launchctl", "bootout", "system", str(plist_file))
|
||||
## DGM # Stop the service installed by the installer
|
||||
## DGM self.proc.run("launchctl", "disable", f"system/{service_name}")
|
||||
## DGM self.proc.run("launchctl", "bootout", "system", str(plist_file))
|
||||
elif upgrade:
|
||||
env = os.environ.copy()
|
||||
extra_args = []
|
||||
|
|
Loading…
Add table
Reference in a new issue