async def migrate_content_to_pulp3(cls): """ Migrate pre-migrated Pulp 2 ISO content. """ first_stage = ContentMigrationFirstStage(cls) dm = DeclarativeContentMigration(first_stage=first_stage) await dm.create()
def migrate_content_to_pulp3(cls): """ Migrate pre-migrated Pulp 2 RPM plugin content. """ first_stage = ContentMigrationFirstStage(cls) dm = RpmDeclarativeContentMigration(first_stage=first_stage) loop = asyncio.get_event_loop() loop.run_until_complete(dm.create())
def migrate_content_to_pulp3(cls, skip_corrupted=False): """ Migrate pre-migrated Pulp 2 docker content. Args: skip_corrupted (bool): If True, corrupted content is skipped during migration, no task failure. """ first_stage = ContentMigrationFirstStage(cls, skip_corrupted=skip_corrupted) dm = DockerDeclarativeContentMigration(first_stage=first_stage) loop = asyncio.get_event_loop() loop.run_until_complete(dm.create())