Skip to content

Commit b096f80

Browse files
fix: Resolve issue with x-linode-cli-rows extension (#510)
## 📝 Description This change resolves an issue that caused the `x-linode-cli-rows` spec extension to not work as expected, which caused the `linodes backups-list {instanceId}` to be unusable. ## ✔️ How to Test Fixed command: ```bash linode-cli linodes backups-list 12345 ``` Integration tests: ```bash make RUN_LONG_TESTS=TRUE testint ```
1 parent cfdc3d4 commit b096f80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

linodecli/baked/response.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,14 @@ def __init__(self, response):
187187
)
188188
else:
189189
self.attrs = _parse_response_model(response.schema)
190-
self.rows = response.schema.extensions.get("linode-cli-rows")
190+
self.rows = response.extensions.get("linode-cli-rows")
191191
self.nested_list = response.extensions.get("linode-cli-nested-list")
192192

193193
def fix_json(self, json):
194194
"""
195195
Formats JSON from the API into a list of rows
196196
"""
197+
197198
if self.rows:
198199
return self._fix_json_rows(json)
199200
if self.nested_list:

0 commit comments

Comments
 (0)