@@ -133,7 +133,7 @@ func (u *updater) filterAvailableUpdates(bottlerocketInstances []instance) ([]in
133133 output , err := parseCommandOutput (commandOutput )
134134 if err != nil {
135135 // not a fatal error, we can continue checking other instances.
136- log .Printf ("Failed to parse command output %s : %v" , string (commandOutput ), err )
136+ log .Printf ("Failed to parse command output %q : %v" , string (commandOutput ), err )
137137 continue
138138 }
139139 if output .UpdateState == updateStateAvailable || output .UpdateState == updateStateReady {
@@ -268,7 +268,7 @@ func (u *updater) updateInstance(inst instance) error {
268268 }
269269 check , err := parseCommandOutput (output )
270270 if err != nil {
271- return fmt .Errorf ("failed to parse command output %s : %w" , string (output ), err )
271+ return fmt .Errorf ("failed to parse command output %q : %w" , string (output ), err )
272272 }
273273
274274 switch check .UpdateState {
@@ -331,7 +331,7 @@ func (u *updater) verifyUpdate(inst instance) (bool, error) {
331331 }
332332 output , err := parseCommandOutput (updateResult )
333333 if err != nil {
334- return false , fmt .Errorf ("failed to parse command output %s , manual verification required: %w" , string (updateResult ), err )
334+ return false , fmt .Errorf ("failed to parse command output %q , manual verification required: %w" , string (updateResult ), err )
335335 }
336336 updatedVersion := output .ActivePartition .Image .Version
337337 if updatedVersion == inst .bottlerocketVersion {
0 commit comments