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

Simplify automatic provisioning code #62

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

dylanmccall
Copy link
Contributor

Instead of setting an environment variable to affect the behaviour of Kolibri's initialize() function, we will call provision_from_file() directly. This makes the application's initial setup process easier to predict, and allows us to avoid creating unnecessary files.

Instead of setting an environment variable to affect the behaviour of
Kolibri's initialize() function, we will call provision_from_file()
directly. This makes the application's initial setup process easier to
predict, and allows us to avoid creating unnecessary files.
Copy link
Member

@dbnicholson dbnicholson left a comment

Choose a reason for hiding this comment

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

I like it. I was going to say it should go before initialize, but I guess that all needs to be run first before you can attempt to provision the device. The other thing I was thinking about was that an automatic provision file may already be configured (either from an environment variable or in options.ini), but I don't see why we shouldn't allow that.

@dbnicholson dbnicholson merged commit 4c7d358 into main Sep 15, 2023
2 checks passed
@dbnicholson dbnicholson deleted the automatic-provision-cleanups branch September 15, 2023 18:55
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.

2 participants