Skip to content

Commit 7432662

Browse files
committed
fix status problem
1 parent 4ce5a3b commit 7432662

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/paas/login.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,15 +213,15 @@ func sprintRegions(activeZones, inactiveRegions []config.Zone) string {
213213
}
214214
}
215215
for i := 0; i < len(inactiveRegions); i++ {
216-
result += fmt.Sprintf(" [-] %s-%s (inactive)\n", inactiveRegions[i].RegionName, inactiveRegions[i].Name)
216+
result += fmt.Sprintf(" [-] %s-%s (down)\n", inactiveRegions[i].RegionName, inactiveRegions[i].Name)
217217
}
218218
return result
219219
}
220220

221221
func getActiveAndInactiveZones(zones []config.Zone) ([]config.Zone, []config.Zone) {
222222
var activeZones, inactiveZones []config.Zone
223223
for i := 0; i < len(zones); i++ {
224-
if zones[i].Active {
224+
if zones[i].Status == "UP" {
225225
activeZones = append(activeZones, zones[i])
226226
} else {
227227
inactiveZones = append(inactiveZones, zones[i])

0 commit comments

Comments
 (0)