Skip to content

Commit

Permalink
Use config argument
Browse files Browse the repository at this point in the history
  • Loading branch information
JokeWaumans committed Sep 9, 2024
1 parent d0967fe commit d7b6831
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mlx/coverity/coverity.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def validate_coverity_credentials(config):
app (sphinx.application.Sphinx): Sphinx' application object.
"""
for required_element in ["hostname", "username", "password", "stream"]:
if required_element not in app.config.coverity_credentials:
if required_element not in config:
LOGGER.error(f"{required_element} is a required configuration in 'coverity_credentials' in conf.py")


Expand All @@ -189,7 +189,7 @@ def setup(app):
dict,
)

validate_coverity_credentials(app)
validate_coverity_credentials(app.config.coverity_credentials)

app.add_config_value("TRACEABILITY_ITEM_ID_REGEX", r"([A-Z_]+-[A-Z0-9_]+)", "env")
app.add_config_value("TRACEABILITY_ITEM_RELINK", {}, "env")
Expand Down

0 comments on commit d7b6831

Please sign in to comment.