Skip to content

Commit

Permalink
Fix quoting issues and add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
steadyk committed Mar 6, 2024
1 parent 860e1cb commit fcbd2c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/harbor.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ async def sync_robot_accounts(target_robots: [Robot]):
)
# Modify existing robot
full_robot_name = 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 All @@ -199,13 +200,13 @@ async def sync_robot_accounts(target_robots: [Robot]):
else:
print(
"- Creating new robot"
f' "{full_robot_name}"'
f' {full_robot_name}'
)
try:
await client.create_robot(robot=target_robot)
except Conflict as e:
print(
f''' => "{full_robot_name}"
f''' => {full_robot_name}
Harbor Conflict Error: {e}'''
)
except BadRequest as e:
Expand Down

0 comments on commit fcbd2c5

Please sign in to comment.