Commit 90edae0
fix: obj plugin error with invalid cluster (#552)
## 📝 Description
**What does this PR do and why is this change necessary?**
When using the command with a invalid region it would print out a large stack trace error, to fix this I added a list of valid clusters generated from the API.
## ✔️ How to Test
**What are the steps to reproduce the issue or verify the changes?**
Use the command with a invalid cluster ID
```bash
lin obj --cluster us-west
```
Co-authored-by: Lena Garber <[email protected]>
Co-authored-by: Zhiwei Liang <[email protected]>1 parent 4010b88 commit 90edae0
File tree
2 files changed
+20
-12
lines changed- linodecli/plugins/obj
- tests/unit
2 files changed
+20
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
81 | 93 | | |
82 | 94 | | |
83 | 95 | | |
| |||
451 | 463 | | |
452 | 464 | | |
453 | 465 | | |
454 | | - | |
| 466 | + | |
455 | 467 | | |
456 | 468 | | |
457 | 469 | | |
| |||
468 | 480 | | |
469 | 481 | | |
470 | 482 | | |
| 483 | + | |
471 | 484 | | |
472 | 485 | | |
473 | 486 | | |
| |||
527 | 540 | | |
528 | 541 | | |
529 | 542 | | |
530 | | - | |
| 543 | + | |
| 544 | + | |
531 | 545 | | |
532 | 546 | | |
533 | 547 | | |
| |||
710 | 724 | | |
711 | 725 | | |
712 | 726 | | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
| 727 | + | |
721 | 728 | | |
722 | 729 | | |
723 | 730 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | | - | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
0 commit comments