Skip to content

Commit 96f1562

Browse files
committed
Remove unnecessary condition
1 parent 1190a98 commit 96f1562

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

rbac/migration_tool/migrate.py

-5
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,6 @@ def migrate_data(
143143
exclude_apps: list = [], orgs: list = [], write_relationships: str = "False", skip_roles: bool = False
144144
):
145145
"""Migrate all data for all tenants."""
146-
# Run this if we don't write relationships (testing out the migration and clean up the created bindingmappings)
147-
if write_relationships != "False":
148-
logger.fatal("Read-only API mode is required. READ_ONLY_API_MODE must be set to true.")
149-
return
150-
151146
count = 0
152147
tenants = Tenant.objects.filter(ready=True).exclude(tenant_name="public")
153148
replicator = _get_replicator(write_relationships)

0 commit comments

Comments
 (0)