-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #438 from BiBiServ/dev
Keeping master up to date
- Loading branch information
Showing
38 changed files
with
1,217 additions
and
542 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
#!/bin/bash | ||
python3 -m bibigrid.core.startup "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
""" | ||
Module that acts as a wrapper and uses validate_configuration to validate given configuration | ||
""" | ||
import logging | ||
from bibigrid.core.utility import validate_configuration | ||
|
||
LOG = logging.getLogger("bibigrid") | ||
|
||
|
||
def check(configurations, providers): | ||
def check(configurations, providers, log): | ||
""" | ||
Uses validate_configuration to validate given configuration. | ||
:param configurations: list of configurations (dicts) | ||
:param providers: list of providers | ||
:param log: | ||
:return: | ||
""" | ||
success = validate_configuration.ValidateConfiguration(configurations, providers).validate() | ||
success = validate_configuration.ValidateConfiguration(configurations, providers, log).validate() | ||
check_result = "succeeded! Cluster is ready to start." if success else "failed!" | ||
print(f"Total check {check_result}") | ||
LOG.info("Total check returned %s.", success) | ||
log.log(42, f"Total check {check_result}") | ||
log.info("Total check returned %s.", success) | ||
return 0 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.