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

[COST-5141] Fix management command to use continue instead of return. #5173

Merged
merged 1 commit into from
Jun 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions koku/masu/management/commands/migrate_trino_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,11 @@ def drop_expired_partitions(tables, schema):
source_column_param = manage_table_mapping[table]
if not check_table_exists(schema, table):
LOG.info(f"{table} does not exist for {schema}")
return
continue
expired_partitions = find_expired_partitions(schema, months, table, source_column_param)
if not expired_partitions:
LOG.info(f"No expired partitions found for {table} {schema}")
return
continue
LOG.info(f"Found {len(expired_partitions)}")
for partition in expired_partitions:
year, month, source = partition
Expand Down
Loading