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

Feature/clan6 199 remove cogboard init task #113

Merged
merged 17 commits into from
Nov 22, 2019

Conversation

GulderBone
Copy link
Contributor

No description provided.

mateusz.bartkowiak added 3 commits November 21, 2019 09:25
Configuration files moved to resources
`widget1.json` deleted
`admins.conf` -> `admins.json`
`.gitignore` updated
@GulderBone GulderBone self-assigned this Nov 21, 2019
Copy link
Contributor

@szymon-owczarzak szymon-owczarzak left a comment

Choose a reason for hiding this comment

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

Please consider my propositions

.gitignore Outdated Show resolved Hide resolved

fun loadConfig(): JsonObject = storage.loadConfig()
fun loadConfig(): JsonObject = VolumeStorageFactory.endpoints().loadConfig()
Copy link
Contributor

Choose a reason for hiding this comment

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

similar as my previous comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed


object AdminsValidator : Validator {
override fun validate(config: String): Boolean {
if (File("/data/admins.json").exists()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this validation makes no sense now as i will be always created before code reaches this point... Lets validate if at least one admin is defined with password

@szymon-owczarzak szymon-owczarzak merged commit a660213 into master Nov 22, 2019
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