Wizard: fix editing RHEL 9 beta blueprints
It would default to RHEL 9 instead of the beta.
This commit is contained in:
parent
c65d924b1a
commit
493649f766
1 changed files with 4 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ import {
|
|||
FIRST_BOOT_SERVICE_DATA,
|
||||
RHEL_8,
|
||||
RHEL_9,
|
||||
RHEL_9_BETA,
|
||||
} from '../../../constants';
|
||||
import { RootState } from '../../../store';
|
||||
import {
|
||||
|
|
@ -132,7 +133,9 @@ const convertFilesystemToPartition = (filesystem: Filesystem): Partition => {
|
|||
* @param distribution blueprint distribution
|
||||
*/
|
||||
const getLatestRelease = (distribution: Distributions) => {
|
||||
return distribution.startsWith('rhel-9')
|
||||
return distribution === RHEL_9_BETA
|
||||
? (RHEL_9_BETA as Distributions)
|
||||
: distribution.startsWith('rhel-9')
|
||||
? RHEL_9
|
||||
: distribution.startsWith('rhel-8')
|
||||
? RHEL_8
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue