Skip to content

fix(cli): render created_at strings from the API in vm list - #155

Merged
klayton-vp merged 1 commit into
mainfrom
klayton/vm-list-created-at
Sep 15, 2026
Merged

klayton-vp merged 1 commit into
mainfrom
klayton/vm-list-created-at

Conversation

@klayton-vp

Copy link
Copy Markdown
Collaborator

lightning vm list crashed against production with 'str' object has no attribute 'strftime': the API returns created_at as an ISO string even though the generated V1Instance model declares a datetime, and the unit test never set the field.

The Created column now accepts either a datetime or a string. Test covers both forms.

Found while running the create, list, ssh, delete loop end to end on a machine cluster; everything else in #148 worked as expected.

@klayton-vp
klayton-vp merged commit d0ec4c7 into main Sep 15, 2026
25 checks passed
@klayton-vp
klayton-vp deleted the klayton/vm-list-created-at branch September 15, 2026 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants