Skip to content

Conversation

@jgallagher
Copy link
Contributor

This pairs with the deserialize call in Agent::new() which expects to deserialize the full struct.


I had a (somewhat) functional sled-agent running, and when restarting the sled-agent service, it failed to restart with this error:

sled-agent: expected an equals, found eof at line 1 column 24

#967 improves this error message significantly (including adding the filename - /var/oxide/subnet.toml in this case), and this change fixes the underlying cause.

This pairs with the deserialize call in `Agent::new()` which expects to
deserialize the full struct.
@jgallagher jgallagher requested a review from smklein April 28, 2022 19:16
Copy link
Collaborator

@smklein smklein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

(I do think the "SledAgentRequest" is currently just the subnet, but obviously we need to match what we serialize/deserialize)

@jgallagher jgallagher merged commit ca48672 into main Apr 28, 2022
@jgallagher jgallagher deleted the reset-toml-err branch April 28, 2022 20:28
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.

3 participants