Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

providers/file: Return ErrNoProvider on ENOENT #947

Closed
wants to merge 1 commit into from

Conversation

cgwalters
Copy link
Member

If the file doesn't exist, return the internal error which
means "not found" as opposed to a parse error.

Prep for further changes around detecting whether an Ignition
config is provided.

If the file doesn't exist, return the internal error which
means "not found" as opposed to a parse error.

Prep for further changes around detecting whether an Ignition
config is provided.
@cgwalters
Copy link
Member Author

(Not tested locally yet)

@cgwalters
Copy link
Member Author

I ended up not using this and did something more elaborate in #948 - I think this still makes sense to merge, but it's not a strong feeling.

@bgilbert
Copy link
Contributor

The file provider is only used for testing, where if it fails, it's convenient to know why. So I'm not sure this is worth it.

@jlebon
Copy link
Member

jlebon commented Apr 2, 2020

Thoughts on closing this in favour of #956?

@cgwalters cgwalters closed this Apr 2, 2020
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