in updater/aws.go [506:516]
func parseCommandOutput(commandOutput []byte) (checkOutput, error) {
output := checkOutput{}
err := json.Unmarshal(commandOutput, &output)
if err != nil {
return output, fmt.Errorf("failed to unmarshal json: %w", err)
}
if output.UpdateState == "" || output.ActivePartition.Image.Version == "" {
return output, fmt.Errorf("mandatory fields are not available")
}
return output, nil
}