The migration process has several different steps that need to use images. The image path, and if it should be local or remote was done in the first to steps but not on the next ones. Move the server image computation to outside, and passed that as an argument.
What does this PR change?
Fix: https://bugzilla.suse.com/show_bug.cgi?id=1227244
The migration process has several different steps that need to use images. The image path, and if it should be local or remote was done in the first to steps but not on the next ones. Move the server image computation to outside, and passed that as an argument.
Test coverage
No tests: add explanation
No tests: already covered
Unit tests were added
[ ] DONE
Links
Issue(s): #
Changelogs
Make sure the changelogs entries you are adding are compliant with https://github.com/uyuni-project/uyuni/wiki/Contributing#changelogs and https://github.com/uyuni-project/uyuni/wiki/Contributing#uyuni-projectuyuni-repository
If you don't need a changelog check, please mark this checkbox:
If you uncheck the checkbox after the PR is created, you will need to re-run
changelog_test
(see below)Before you merge
Check How to branch and merge properly!