Skip to content

Commit d48b580

Browse files
s4heidaramprice
authored andcommitted
Fix cloud-init logging format
The typo leads to problems when cloud-init attempts to load the logging configuration. This is evident in the logs, as shown by the following stack trace: > cloud-init[515]: 2025-09-24 12:07:29,260 - util.py[WARNING]: Failed > loading yaml blob. Invalid format at line 10 column 1: "expected ? '<document start>', but found '<block mapping start>' > cloud-init[515]: in "<unicode string>", line 10, column 1: > cloud-init[515]: _log: > cloud-init[515]: ^"
1 parent 26f3d76 commit d48b580

File tree

1 file changed

+3
-4
lines changed
  • stemcell_builder/stages/system_azure_init/assets/etc/cloud-init

1 file changed

+3
-4
lines changed

stemcell_builder/stages/system_azure_init/assets/etc/cloud-init/05-logging.cfg

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
=## This yaml formated config file handles setting
1+
## This yaml formatted config file handles setting
22
## logger information. The values that are necessary to be set
33
## are seen at the bottom. The top '_log' are only used to remove
4-
## redundency in a syslog and fallback-to-file case.
4+
## redundancy in a syslog and fallback-to-file case.
55
##
66
## The 'log_cfgs' entry defines a list of logger configs
77
## Each entry in the list is tried, and the first one that
@@ -68,5 +68,4 @@ log_cfgs:
6868
# This tells cloud-init to redirect its stdout and stderr to
6969
# 'tee -a /var/log/cloud-init-output.log' so the user can see output
7070
# there without needing to look on the console.
71-
output: {all: '| tee -a /var/log/cloud-init-output.log'}
72-
71+
output: {all: '| tee -a /var/log/cloud-init-output.log'}

0 commit comments

Comments
 (0)