Skip to content

Commit

Permalink
cloud-init: improve package logging
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Peterson <[email protected]>
  • Loading branch information
dbungert and Chris-Peterson444 authored Oct 7, 2024
1 parent 9781b44 commit ed43aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subiquity/cloudinit.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def cloud_init_version() -> str:
cmd = ["dpkg-query", "-W", "-f=${Version}", pkg]
sp = run_command(cmd, check=False)
if version := re.split("[-~]", sp.stdout)[0]:
log.debug(f"cloud-init version: {version}")
log.debug(f"{pkg} version: {version}")
return version
log.debug("cloud-init not installed")
return ""
Expand Down

0 comments on commit ed43aec

Please sign in to comment.