ImageCreateWizard: Use imageOutputStepMapper in all imageOutput steps

Also renamed the stepMapper to clarify that it's just meant for the
imageOutput steps.
This commit is contained in:
Sanne Raymaekers 2021-06-30 11:20:49 +02:00
parent 1125222232
commit d8de57508d
6 changed files with 8 additions and 7 deletions

View file

@ -1,15 +0,0 @@
export default ({ 'target-environment': targetEnv, release } = {}, { skipAws, skipGoogle, sipAzure } = {}) => {
if (!skipAws && targetEnv?.aws) {
return 'aws-target-env';
}
if (!skipGoogle && targetEnv?.google) {
return 'google-cloud-target-env';
}
if (!sipAzure && targetEnv?.azure) {
return 'ms-azure-target-env';
}
return release === 'rhel-8' ? 'registration' : 'packages';
};