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

Fix calls to get_es_metadata in checks/audit_checks.py to work when E… #569

Merged
merged 3 commits into from
Apr 25, 2024

Conversation

dmichaels-harvard
Copy link
Contributor

Fix calls to get_es_metadata in checks/audit_checks.py to work when ES_HOST_LOCAL is set.

Copy link
Member

@aschroed aschroed left a comment

Choose a reason for hiding this comment

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

There are a few other cases when get_es_metadata is called - one in wrangler_checks and I think a couple more in es_checks?

Copy link
Member

@willronchetti willronchetti left a comment

Choose a reason for hiding this comment

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

Should double check for other references to repair, and also refactor into utils

Comment on lines +6 to +10
def get_es_metadata(*args, **kwargs):
if (kwargs.get("es_client", None) is None) and ((es_host_local := _get_es_host_local()) is not None):
es_client = create_es_client(es_host_local, use_aws_auth=True)
return ff_utils.get_es_metadata(*args, **kwargs, es_client=es_client)
return ff_utils.get_es_metadata(*args, **kwargs)
Copy link
Member

Choose a reason for hiding this comment

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

This should go in dcicutils for sure

@aschroed aschroed merged commit 27f749d into master Apr 25, 2024
1 check failed
@aschroed aschroed deleted the get-es-metadata-localhost-fix-20240423 branch October 8, 2024 21:06
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.

3 participants