Skip to content

Commit

Permalink
codestyle corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
peters-david committed Jul 4, 2024
1 parent 1f191d7 commit 8a1f21a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/harbor.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ async def main() -> None:

# Sync purge jobs
print("SYNCING PURGE JOBS")
purge_jobs_config = json.load(open(config_folder_path + "/purge-jobs.json"))
purge_jobs_config = json.load(
open(config_folder_path + "/purge-jobs.json")
)
await sync_purge_jobs(purge_jobs=purge_jobs_config)
print("")

Expand Down Expand Up @@ -334,6 +336,7 @@ async def sync_projects(target_projects: [Project]) -> None:
print(f'- Creating new project "{target_project["project_name"]}"')
await client.create_project(project=target_project)


async def sync_purge_jobs(purge_jobs: [Schedule]) -> None:
for purge_job in purge_jobs:
await client.create_purge_job_schedule(purge_job)
Expand Down

0 comments on commit 8a1f21a

Please sign in to comment.