Commit 0458bc3
committed
RHOAIENG-57401: fix fragile if/elif chain in Cluster.status()
Refactor mixed if/elif chain to a proper if/elif/elif chain so
that only one branch executes per call. Add missing SUSPENDED
status test case.
Resolves: RHOAIENG-54701
Made-with: Cursor1 parent d87aac4 commit 0458bc3
2 files changed
Lines changed: 11 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | 354 | | |
361 | 355 | | |
362 | 356 | | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
363 | 360 | | |
364 | 361 | | |
365 | 362 | | |
366 | 363 | | |
367 | 364 | | |
368 | 365 | | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
94 | 99 | | |
95 | 100 | | |
96 | 101 | | |
| |||
0 commit comments