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

Check if CONFIG_FILE is defined #762

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

ehelms
Copy link
Member

@ehelms ehelms commented Sep 14, 2023

No description provided.

@evgeni
Copy link
Member

evgeni commented Sep 20, 2023

In which case will that be undefined?

(I was looking at the same part of code the other day, as I wanted to be able to override the config from ENV or something, but didn't see a case where it can be undefined).

@ehelms
Copy link
Member Author

ehelms commented Sep 20, 2023

In which case will that be undefined?

(I was looking at the same part of code the other day, as I wanted to be able to override the config from ENV or something, but didn't see a case where it can be undefined).

I ran into this running code locally, trying to call parts of the stack to generate lists of items and realized this had a strong expectation that this exists instead of either defining a default CONFIG_FILE or checking for existence.

@ehelms ehelms merged commit 249ce77 into theforeman:master Sep 20, 2023
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants