Update repository_migrator.py to fix Repository capture and migration feature#148
Update repository_migrator.py to fix Repository capture and migration feature#148
Conversation
Fixes Issue [ni#147](ni#147): "Service 'PackageRepository' cannot be migrated because the specified service is not installed locally." The service definition json for the package repository is %PROGRAMDATA%/Skyline/Config/Repository.json", which fails to match the RepositoryMigrator.name = "PackageRepository" property -> hence the service fails to be found by the module.
|
This will break migrating SL 21+ because the package repository service configuration file got renamed to Perhaps to fix your issue you can copy Package.json and rename it to PackageRepository.json so the the migration tool has something to find? I'm not sure if the repository files also live in a different location on that version of SL. |
|
Good to know. In that case we could just add an OR function to match all versions. |
We only document support for 21.0+. There are likely other compatibility issues with migrating 20.x verions of SystemLink with this tool. |
|
The upgrade was from 21.0 to 22Q3. According to the README.md, 21.0 as a source version should be supported. |
Fixes Issue #147: "Service 'PackageRepository' cannot be migrated because the specified service is not installed locally."
The service definition json for the package repository is %PROGRAMDATA%/Skyline/Config/Repository.json", which fails to match the RepositoryMigrator.name = "PackageRepository" property -> hence the service fails to be found by the module.
TODO: Check the above box with an 'x' indicating you've read and followed CONTRIBUTING.md.
What does this Pull Request accomplish?
TODO: Fixes capture and migrate features for the Repository service.
Why should this Pull Request be merged?
TODO: Fix issue #147
What testing has been done?
TODO: Tested successfully with SystemLink Server 21.0. Should hold true for any newer SystemLink Server instance with installed Repository service.