-
Notifications
You must be signed in to change notification settings - Fork 5
initial implementation of eessi check
#10
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
base: main
Are you sure you want to change the base?
Conversation
| setting_values = get_cvmfs_config_settings(repo, specs['keys']) | ||
|
|
||
| for key in specs['keys']: | ||
| descr = CVMFS_CLIENT_SETTINGS[key] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this overwites the descr looping var from line 194, one of the two should change name
| value += " (not recommended, see https://eessi.io/docs/no-proxy)" | ||
|
|
||
| if value is None: | ||
| results.append((ERROR, f"{descr}: {UNKNOWN}")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is confusing, why is this case returned through results? but the other cases (line 216, line 224) are just printed out and not added to results?
| app = typer.Typer() | ||
|
|
||
|
|
||
| INFO = 'INFO' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should better go into an eessi.config module so that it can be reused in other apps
| return (res.stdout, res.stderr, res.returncode) | ||
|
|
||
|
|
||
| def is_repo_available(repo: str): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could also move many of these methods into an eessi.check module that can be reused in other apps. For instance I can imagine eessi.install using this check. But this can be done at a later time.
No description provided.