Skip to content

Commit

Permalink
changed dict attribute access
Browse files Browse the repository at this point in the history
  • Loading branch information
peters-david committed Mar 7, 2024
1 parent ebe413e commit a4baf16
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,7 @@ async def sync_registries(target_registries: [Registry]):


async def construct_full_robot_name(target_robot: Robot) -> str:
if (namespace := target_robot.permissions[0].namespace) != '*':
if (namespace := target_robot['permissions'][0]['namespace'] != '*':
return f'{robot_name_prefix}{namespace}+{target_robot.name}'
else:
return f'{robot_name_prefix}{target_robot.name}'
Expand Down

0 comments on commit a4baf16

Please sign in to comment.