Skip to content

Commit

Permalink
Remove unneeded line, add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
steadyk committed Mar 7, 2024
1 parent 34662e9 commit 357cdc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/harbor.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ async def sync_registries(target_registries: [Registry]):


async def construct_full_robot_name(target_robot: Robot) -> str:
namespace = target_robot.permissions[0].namespace
if (namespace := target_robot.permissions[0].namespace) is not '*':
return f'{robot_name_prefix}{namespace}+{target_robot.name}'
else:
Expand Down Expand Up @@ -188,6 +187,7 @@ async def sync_robot_accounts(target_robots: [Robot]):
)
# Modify existing robot
full_robot_name = await construct_full_robot_name(target_robot)
print(f'Full robot name: {full_robot_name}')
if full_robot_name in current_robot_names:
robot_id = current_robot_id[
current_robot_names.index(full_robot_name)
Expand Down

0 comments on commit 357cdc8

Please sign in to comment.