Skip to content

Commit eb580f7

Browse files
committed
Add prepare prepare_for_update for role migration
1 parent e12d458 commit eb580f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rbac/migration_tool/migrate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def migrate_roles_for_tenant(tenant, exclude_apps, replicator):
8585
dual_write_handler = RelationApiDualWriteHandler(
8686
role, ReplicationEventType.MIGRATE_CUSTOM_ROLE, replicator
8787
)
88-
88+
dual_write_handler.prepare_for_update()
8989
dual_write_handler.replicate_new_or_updated_role(role)
9090

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

0 commit comments

Comments
 (0)