Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
DeveloperConnor committed Nov 1, 2024
1 parent 408c014 commit b6514be
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions dbt_platform_helper/utils/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,17 +592,17 @@ def _validate_redis_versions(config):

if not isinstance(environments, dict):
click.secho(
'Error: Redis extension definition is invalid type, expected dictionary',
fg='red'
"Error: Redis extension definition is invalid type, expected dictionary", fg="red"
)
continue

for environment, env_config in environments.items():

redis_engine_version = env_config.get("engine")
if redis_engine_version not in supported_redis_versions:
redis_environments_with_failure.append([extension, environment, redis_engine_version])

redis_environments_with_failure.append(
[extension, environment, redis_engine_version]
)

if redis_environments_with_failure:
for version_failure in redis_environments_with_failure:
Expand Down Expand Up @@ -635,16 +635,18 @@ def _validate_opensearch_versions(config):

if not isinstance(environments, dict):
click.secho(
'Error: Opensearch extension definition is invalid type, expected dictionary',
fg='red'
"Error: Opensearch extension definition is invalid type, expected dictionary",
fg="red",
)
continue

for environment, env_config in environments.items():

opensearch_engine_version = env_config.get("engine")
if opensearch_engine_version not in supported_opensearch_versions:
opensearch_environments_with_failure.append([extension, environment, opensearch_engine_version])
opensearch_environments_with_failure.append(
[extension, environment, opensearch_engine_version]
)

if opensearch_environments_with_failure:
for version_failure in opensearch_environments_with_failure:
Expand Down

0 comments on commit b6514be

Please sign in to comment.