Commit 1af042c
Fix IBM Schematics API compatibility issue (#1006)
* Fix IBM Schematics API compatibility issue
The list_locations() method was removed from IBM Schematics SDK.
Replace dynamic location discovery with hardcoded known IBM Cloud regions.
Fixes AttributeError: 'SchematicsV1' object has no attribute 'list_locations'
* Improve error handling for Schematics region failures
- Track failed regions instead of silently ignoring all errors
- Raise RuntimeError if ALL regions fail (prevents silent failures)
- Include detailed error messages for debugging
- Addresses CodeRabbit review feedback
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 157c4e1 commit 1af042c
1 file changed
Lines changed: 30 additions & 9 deletions
Lines changed: 30 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| 48 | + | |
46 | 49 | | |
47 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
48 | 53 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
55 | 76 | | |
0 commit comments