Skip to content

Commit

Permalink
change good status string
Browse files Browse the repository at this point in the history
Summary: with R19.2 the ready status string has changed from "Ready" to "ReadyForMeasurement" in modules status report. Update the code accordingly

Reviewed By: abulimov

Differential Revision: D58584083

fbshipit-source-id: 4b7ec57c2aacce74ae8c80136b752db183d5412d
  • Loading branch information
vvfedorenko authored and facebook-github-bot committed Jun 14, 2024
1 parent 33e1d70 commit 5b34001
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions calnex/verify/checks/measurement.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ import (
)

const (
measuring = "Measuring"
ready = "Ready"
measuring = "Measuring"
ready = "Ready"
readyForMeasurement = "ReadyForMeasurement"
)

// Module check
Expand All @@ -48,7 +49,7 @@ func (m *Module) Run(target string, insecureTLS bool) error {
}

for channel, module := range ms.Modules {
if module.State != measuring && module.State != ready {
if module.State != measuring && module.State != ready && module.State != readyForMeasurement {
return fmt.Errorf("module: failed module %s: state: %s", channel, module.State)
}
}
Expand Down

0 comments on commit 5b34001

Please sign in to comment.