From 840303b90c47e6559991979e509aa010cf8604b7 Mon Sep 17 00:00:00 2001 From: frank-pang-msft <92764154+frank-pang-msft@users.noreply.github.com> Date: Fri, 26 Aug 2022 15:17:51 -0700 Subject: [PATCH] Bump to v2.0.3: Make first substatus backwards compatible with HostGAPlugin (#25) * Make first substatus backwards compatible with HostGA by dedicating first substatus for health store --- integration-test/test/2_handler-commands.bats | 59 ++++++++++++++----- integration-test/test/3_rich-states.bats | 13 ++-- integration-test/test/4_grace-period.bats | 21 ++++--- integration-test/test/5_custom-metrics.bats | 35 +++++------ integration-test/test/test_helper.bash | 11 ++++ main/cmds.go | 2 +- main/constants.go | 2 +- main/health.go | 23 ++++++-- main/probeResponse.go | 2 +- main/status.go | 2 +- misc/manifest.xml | 2 +- 11 files changed, 118 insertions(+), 54 deletions(-) diff --git a/integration-test/test/2_handler-commands.bats b/integration-test/test/2_handler-commands.bats index 2b5bd9e..ccd8bd1 100644 --- a/integration-test/test/2_handler-commands.bats +++ b/integration-test/test/2_handler-commands.bats @@ -31,7 +31,8 @@ teardown(){ diff="$(container_diff)"; echo "$diff" [[ "$diff" = *"A /var/lib/waagent/Extension/status/0.status"* ]] status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "$status_file"; [[ "$status_file" = *'Application health found to be healthy'* ]] + + verify_substatus_item "$status_file" HealthStore success "Health store will interpret application health as healthy" } @test "handler command: enable twice, process exits cleanly" { @@ -49,7 +50,9 @@ teardown(){ diff="$(container_diff)"; echo "$diff" [[ "$diff" = *"A /var/lib/waagent/Extension/status/0.status"* ]] status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "$status_file"; [[ "$status_file" = *'Application health found to be healthy'* ]] + + verify_substatus_item "$status_file" HealthStore success "Health store will interpret application health as healthy" + verify_substatus_item "$status_file" ApplicationHealthState success Healthy } @test "handler command: enable - validates json schema" { @@ -72,7 +75,9 @@ teardown(){ echo "$output" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be initializing'* ]] + + verify_substatus_item "$status_file" HealthStore success "Health store will interpret application health as healthy" + verify_substatus_item "$status_file" ApplicationHealthState transitioning Initializing } @test "handler command: enable - failed http probe" { @@ -98,7 +103,9 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be initializing'* ]] + + verify_substatus_item "$status_file" HealthStore success "Health store will interpret application health as healthy" + verify_substatus_item "$status_file" ApplicationHealthState transitioning Initializing } @test "handler command: enable - failed https probe" { @@ -124,7 +131,9 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be initializing'* ]] + + verify_substatus_item "$status_file" HealthStore success "Health store will interpret application health as healthy" + verify_substatus_item "$status_file" ApplicationHealthState transitioning Initializing } @test "handler command: enable - healthy tcp probe" { @@ -138,7 +147,9 @@ teardown(){ echo "$output" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be healthy'* ]] + + verify_substatus_item "$status_file" HealthStore success "Health store will interpret application health as healthy" + verify_substatus_item "$status_file" ApplicationHealthState success Healthy } @test "handler command: enable - healthy http probe" { @@ -156,7 +167,9 @@ teardown(){ [[ "$output" == *'No longer honoring grace period - successful probes'* ]] status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be healthy'* ]] + + verify_substatus_item "$status_file" HealthStore success "Health store will interpret application health as healthy" + verify_substatus_item "$status_file" ApplicationHealthState success Healthy } @test "handler command: enable - https unknown after 10 seconds" { @@ -187,7 +200,9 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be unknown'* ]] + + verify_substatus_item "$status_file" HealthStore error "Health store will interpret application health as unhealthy" + verify_substatus_item "$status_file" ApplicationHealthState error Unknown } @test "handler command: enable - unknown http probe - no response body" { @@ -212,7 +227,9 @@ teardown(){ ) verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be initializing'* ]] + + verify_substatus_item "$status_file" HealthStore success "Health store will interpret application health as healthy" + verify_substatus_item "$status_file" ApplicationHealthState transitioning Initializing } @test "handler command: enable - unknown http probe - no response body - prefixing requestPath with a slash" { @@ -238,7 +255,9 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be initializing'* ]] + + verify_substatus_item "$status_file" HealthStore success "Health store will interpret application health as healthy" + verify_substatus_item "$status_file" ApplicationHealthState transitioning Initializing } @test "handler command: enable - unknown https probe - no response body" { @@ -263,7 +282,9 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be initializing'* ]] + + verify_substatus_item "$status_file" HealthStore success "Health store will interpret application health as healthy" + verify_substatus_item "$status_file" ApplicationHealthState transitioning Initializing } @test "handler command: enable - numofprobes with states = unk,unk" { @@ -291,7 +312,9 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be initializing'* ]] + + verify_substatus_item "$status_file" HealthStore success "Health store will interpret application health as healthy" + verify_substatus_item "$status_file" ApplicationHealthState transitioning Initializing } @test "handler command: enable - numofprobes with states = h,h,unk,unk" { @@ -325,7 +348,9 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be unknown'* ]] + + verify_substatus_item "$status_file" HealthStore error "Health store will interpret application health as unhealthy" + verify_substatus_item "$status_file" ApplicationHealthState error Unknown } @test "handler command: enable - numofprobes with states = h,h,unk,unk,h" { @@ -360,7 +385,9 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be unknown'* ]] + + verify_substatus_item "$status_file" HealthStore error "Health store will interpret application health as unhealthy" + verify_substatus_item "$status_file" ApplicationHealthState error Unknown } @test "handler command: enable - numofprobes with states = h,h,unk,unk,h,h" { @@ -396,7 +423,9 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be healthy'* ]] + + verify_substatus_item "$status_file" HealthStore success "Health store will interpret application health as healthy" + verify_substatus_item "$status_file" ApplicationHealthState success Healthy } @test "handler command: uninstall - deletes the data dir" { diff --git a/integration-test/test/3_rich-states.bats b/integration-test/test/3_rich-states.bats index 305e4ac..61b7ca3 100644 --- a/integration-test/test/3_rich-states.bats +++ b/integration-test/test/3_rich-states.bats @@ -44,7 +44,8 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be unknown'* ]] + verify_substatus_item "$status_file" HealthStore error "Health store will interpret application health as unhealthy" + verify_substatus_item "$status_file" ApplicationHealthState error Unknown } @test "handler command: enable - rich states - basic states = m,h,h,u,u,i,i" { @@ -82,7 +83,8 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be unknown'* ]] + verify_substatus_item "$status_file" HealthStore error "Health store will interpret application health as unhealthy" + verify_substatus_item "$status_file" ApplicationHealthState error Unknown } @test "handler command: enable - rich states - alternating states=i,h,h,i,h,u,h,i,h" { @@ -121,7 +123,8 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be unknown'* ]] + verify_substatus_item "$status_file" HealthStore error "Health store will interpret application health as unhealthy" + verify_substatus_item "$status_file" ApplicationHealthState error Unknown } @test "handler command: enable - rich states - endpoint timeout results in unknown" { @@ -155,6 +158,6 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be unknown'* ]] + verify_substatus_item "$status_file" HealthStore error "Health store will interpret application health as unhealthy" + verify_substatus_item "$status_file" ApplicationHealthState error Unknown } - diff --git a/integration-test/test/4_grace-period.bats b/integration-test/test/4_grace-period.bats index 0ebbd9b..38d9bd0 100644 --- a/integration-test/test/4_grace-period.bats +++ b/integration-test/test/4_grace-period.bats @@ -60,7 +60,8 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be initializing'* ]] + verify_substatus_item "$status_file" HealthStore success "Health store will interpret application health as healthy" + verify_substatus_item "$status_file" ApplicationHealthState transitioning Initializing } @test "handler command: enable - honor grace period - unresponsive http probe with numberOfProbes=1" { @@ -88,7 +89,8 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be initializing'* ]] + verify_substatus_item "$status_file" HealthStore success "Health store will interpret application health as healthy" + verify_substatus_item "$status_file" ApplicationHealthState transitioning Initializing } @test "handler command: enable - bypass grace period - consecutive valid health states" { @@ -127,7 +129,8 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be unknown'* ]] + verify_substatus_item "$status_file" HealthStore error "Health store will interpret application health as unhealthy" + verify_substatus_item "$status_file" ApplicationHealthState error Unknown } @test "handler command: enable - bypass grace period - state change behavior retained" { @@ -169,7 +172,8 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be unknown'* ]] + verify_substatus_item "$status_file" HealthStore error "Health store will interpret application health as unhealthy" + verify_substatus_item "$status_file" ApplicationHealthState error Unknown } @test "handler command: enable - bypass grace period - larger numberOfProbes, consecutive rich states" { @@ -211,7 +215,8 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be unknown'* ]] + verify_substatus_item "$status_file" HealthStore error "Health store will interpret application health as unhealthy" + verify_substatus_item "$status_file" ApplicationHealthState error Unknown } @test "handler command: enable - bypass / grace period expires - fail to bypass and expiration results in unknown" { @@ -249,7 +254,8 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be unknown'* ]] + verify_substatus_item "$status_file" HealthStore error "Health store will interpret application health as unhealthy" + verify_substatus_item "$status_file" ApplicationHealthState error Unknown } @test "handler command: enable - grace period expires - additional alternating health states" { @@ -292,5 +298,6 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be healthy'* ]] + verify_substatus_item "$status_file" HealthStore success "Health store will interpret application health as healthy" + verify_substatus_item "$status_file" ApplicationHealthState success Healthy } diff --git a/integration-test/test/5_custom-metrics.bats b/integration-test/test/5_custom-metrics.bats index c10be73..6068ddf 100644 --- a/integration-test/test/5_custom-metrics.bats +++ b/integration-test/test/5_custom-metrics.bats @@ -38,7 +38,8 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be healthy'* ]] + verify_substatus_item "$status_file" HealthStore success "Health store will interpret application health as healthy" + verify_substatus_item "$status_file" ApplicationHealthState success Healthy echo "status_file=$status_file"; [[ "$status_file" != *'CustomMetrics'* ]] } @@ -71,7 +72,8 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be unhealthy'* ]] + verify_substatus_item "$status_file" HealthStore error "Health store will interpret application health as unhealthy" + verify_substatus_item "$status_file" ApplicationHealthState success Unhealthy [[ "$status_file" != *'CustomMetrics'* ]] } @@ -102,7 +104,8 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be healthy'* ]] + verify_substatus_item "$status_file" HealthStore success "Health store will interpret application health as healthy" + verify_substatus_item "$status_file" ApplicationHealthState success Healthy [[ "$status_file" != *'CustomMetrics'* ]] } @@ -133,10 +136,9 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be healthy'* ]] - - echo "$status_file" | egrep -z '"name": "ApplicationHealthState",\s+"status": "success",\s+"formattedMessage": {\s+"lang": "en",\s+"message": "Healthy"' - echo "$status_file" | egrep -z '"name": "CustomMetrics",\s+"status": "error",\s+"formattedMessage": {\s+"lang": "en",\s+"message": "\{\}"' + verify_substatus_item "$status_file" HealthStore success "Health store will interpret application health as healthy" + verify_substatus_item "$status_file" ApplicationHealthState success Healthy + verify_substatus_item "$status_file" CustomMetrics error '\{\}' } @test "handler command: enable - custom metrics - sending invalid formatted custom metrics appears in status file with error status" { @@ -166,10 +168,9 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be healthy'* ]] - - echo "$status_file" | egrep -z '"name": "ApplicationHealthState",\s+"status": "success",\s+"formattedMessage": {\s+"lang": "en",\s+"message": "Healthy"' - echo "$status_file" | egrep -z '"name": "CustomMetrics",\s+"status": "error",\s+"formattedMessage": {\s+"lang": "en",\s+"message": "\[ \\"hello\\", \\"world\\" ]"' + verify_substatus_item "$status_file" HealthStore success "Health store will interpret application health as healthy" + verify_substatus_item "$status_file" ApplicationHealthState success Healthy + verify_substatus_item "$status_file" CustomMetrics error '\[ \\"hello\\", \\"world\\" ]' } @test "handler command: enable - custom metrics - sending valid custom metrics is seen in status file" { @@ -199,9 +200,9 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be healthy'* ]] - - echo "$status_file" | egrep -z '"name": "CustomMetrics",\s+"status": "success",\s+"formattedMessage": {\s+"lang": "en",\s+"message": "{\\"rollingUpgradePolicy\\": { \\"phase\\": 2, \\"doNotUpgrade\\": true, \\"dummy\\": \\"yes\\" } }"' + verify_substatus_item "$status_file" HealthStore success "Health store will interpret application health as healthy" + verify_substatus_item "$status_file" ApplicationHealthState success Healthy + verify_substatus_item "$status_file" CustomMetrics success '{\\"rollingUpgradePolicy\\": { \\"phase\\": 2, \\"doNotUpgrade\\": true, \\"dummy\\": \\"yes\\" } }' } @test "handler command: enable - custom metrics - sending valid custom metrics is seen in status file even if health is unknown" { @@ -230,7 +231,7 @@ teardown(){ verify_states "$enableLog" "${expectedStateLogs[@]}" status_file="$(container_read_file /var/lib/waagent/Extension/status/0.status)" - echo "status_file=$status_file"; [[ "$status_file" = *'Application health found to be initializing'* ]] - - echo "$status_file" | egrep -z '"name": "CustomMetrics",\s+"status": "success",\s+"formattedMessage": {\s+"lang": "en",\s+"message": "{\\"rollingUpgradePolicy\\": { \\"phase\\": 2, \\"doNotUpgrade\\": true, \\"dummy\\": \\"yes\\" } }"' + verify_substatus_item "$status_file" HealthStore success "Health store will interpret application health as healthy" + verify_substatus_item "$status_file" ApplicationHealthState transitioning Initializing + verify_substatus_item "$status_file" CustomMetrics success '{\\"rollingUpgradePolicy\\": { \\"phase\\": 2, \\"doNotUpgrade\\": true, \\"dummy\\": \\"yes\\" } }' } \ No newline at end of file diff --git a/integration-test/test/test_helper.bash b/integration-test/test/test_helper.bash index bc8fab0..e588177 100644 --- a/integration-test/test/test_helper.bash +++ b/integration-test/test/test_helper.bash @@ -165,4 +165,15 @@ verify_states() { index=$index+1 done done <<< "$1" +} + +verify_substatus_item() { + # $1 status_file contents + # $2 substatus.name + # $3 substatus.status + # $4 substatus.formattedMessage.message + FMT='"name": "'%s'",\s+"status": "'%s'",\s+"formattedMessage": {\s+"lang": "en",\s+"message": "'%s'"' + printf -v SUBSTATUS "$FMT" "$2" "$3" "$4" + echo "Searching status file for: $SUBSTATUS" + echo "$1" | egrep -z "$SUBSTATUS" } \ No newline at end of file diff --git a/main/cmds.go b/main/cmds.go index f1a9906..0b03be3 100644 --- a/main/cmds.go +++ b/main/cmds.go @@ -164,7 +164,7 @@ func enable(ctx *log.Context, h vmextension.HandlerEnvironment, seqNum int) (str } substatuses := []SubstatusItem{ - NewSubstatus(SubstatusKeyNameAppHealthStatus, committedState.GetStatusType(), committedState.GetSubstatusMessage()), + NewSubstatus(SubstatusKeyNameHealthStore, committedState.GetStatusTypeForHealthStore(), committedState.GetMessageForHealthStore()), NewSubstatus(SubstatusKeyNameApplicationHealthState, committedState.GetStatusType(), string(committedState)), } diff --git a/main/constants.go b/main/constants.go index 8e22816..ebf1089 100644 --- a/main/constants.go +++ b/main/constants.go @@ -1,7 +1,7 @@ package main const ( - SubstatusKeyNameAppHealthStatus = "AppHealthStatus" + SubstatusKeyNameHealthStore = "HealthStore" SubstatusKeyNameApplicationHealthState = "ApplicationHealthState" SubstatusKeyNameCustomMetrics = "CustomMetrics" diff --git a/main/health.go b/main/health.go index a5d9922..e94d83f 100644 --- a/main/health.go +++ b/main/health.go @@ -36,8 +36,21 @@ func (p HealthStatus) GetStatusType() StatusType { } } -func (p HealthStatus) GetSubstatusMessage() string { - return "Application health found to be " + strings.ToLower(string(p)) +func (p HealthStatus) GetStatusTypeForHealthStore() StatusType { + switch p { + case Unhealthy, Unknown: + return StatusError + default: + return StatusSuccess + } +} + +func (p HealthStatus) GetMessageForHealthStore() string { + if p.GetStatusTypeForHealthStore() == StatusError { + return "Health store will interpret application health as unhealthy" + } else { + return "Health store will interpret application health as healthy" + } } type HealthProbe interface { @@ -173,16 +186,16 @@ func (p *HttpHealthProbe) evaluate(ctx *log.Context) (ProbeResponse, error) { probeResponse.ApplicationHealthState = Unknown return probeResponse, err } - + if err := json.Unmarshal(bodyBytes, &probeResponse); err != nil { probeResponse.ApplicationHealthState = Unknown return probeResponse, err - } + } if err := probeResponse.validateCustomMetrics(); err != nil { ctx.Log("error", err) } - + if err := probeResponse.validateApplicationHealthState(); err != nil { probeResponse.ApplicationHealthState = Unknown return probeResponse, err diff --git a/main/probeResponse.go b/main/probeResponse.go index 2e33bcd..eaf789f 100644 --- a/main/probeResponse.go +++ b/main/probeResponse.go @@ -36,4 +36,4 @@ func (p ProbeResponse) validateCustomMetrics() error { } } return nil -} \ No newline at end of file +} diff --git a/main/status.go b/main/status.go index 254dd8d..39dff4c 100644 --- a/main/status.go +++ b/main/status.go @@ -64,7 +64,7 @@ func NewStatus(t StatusType, operation, message string) StatusReport { } func NewSubstatus(name string, t StatusType, message string) SubstatusItem { - return SubstatusItem { + return SubstatusItem{ Name: name, Status: t, FormattedMessage: FormattedMessage{ diff --git a/misc/manifest.xml b/misc/manifest.xml index ab40145..ccf4d3b 100644 --- a/misc/manifest.xml +++ b/misc/manifest.xml @@ -2,7 +2,7 @@ Microsoft.ManagedServices ApplicationHealthLinux - 2.0.2 + 2.0.3 VmRole