CreateImageWizard: initialize on-prem with host distro
Initialize the create image wizard with the host's distribution for the on-premise frontend.
This commit is contained in:
parent
ed8254f962
commit
44af2f278b
4 changed files with 42 additions and 10 deletions
|
|
@ -0,0 +1,8 @@
|
|||
import { read_os_release } from 'os-release';
|
||||
|
||||
import { Distributions } from '../../../store/imageBuilderApi';
|
||||
|
||||
export const getHostDistro = async () => {
|
||||
const osRel = await read_os_release();
|
||||
return `${osRel.ID}-${osRel.VERSION_ID}` as Distributions;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue