Skip to content

Commit

Permalink
Add prepare prepare_for_update for role migration
Browse files Browse the repository at this point in the history
  • Loading branch information
lpichler committed Jan 20, 2025
1 parent e12d458 commit eb580f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rbac/migration_tool/migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def migrate_roles_for_tenant(tenant, exclude_apps, replicator):
dual_write_handler = RelationApiDualWriteHandler(
role, ReplicationEventType.MIGRATE_CUSTOM_ROLE, replicator
)

dual_write_handler.prepare_for_update()
dual_write_handler.replicate_new_or_updated_role(role)

logger.info(f"Migration completed for role: {role.name} with UUID {role.uuid}.")
Expand Down

0 comments on commit eb580f7

Please sign in to comment.