mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Test debug
This commit is contained in:
parent
c3d8f50212
commit
d47af5245c
1 changed files with 10 additions and 0 deletions
|
@ -34,6 +34,16 @@ def _system_up_to_date(
|
|||
grains,
|
||||
shell,
|
||||
):
|
||||
gpg_dest = "/etc/apt/keyrings/salt-archive-keyring.gpg"
|
||||
if os.path.exists(gpg_dest):
|
||||
with salt.utils.files.fopen(gpg_dest, "r") as fp:
|
||||
log.error("Salt gpg key is %s", fp.read())
|
||||
else:
|
||||
log.error("Salt gpg not present")
|
||||
#download_file(
|
||||
# "https://packages.broadcom.com/artifactory/api/security/keypair/SaltProjectKey/public",
|
||||
# gpg_dest,
|
||||
#)
|
||||
if grains["os_family"] == "Debian":
|
||||
ret = shell.run("apt", "update")
|
||||
assert ret.returncode == 0
|
||||
|
|
Loading…
Add table
Reference in a new issue