V2Wizard: Make convert repository functions exportable
This make `convertSchemaToIBCustomRepo` and `convertSchemaToIBPayloadRepo` functions exportable.
This commit is contained in:
parent
7e83c8ecbb
commit
39cb4336b4
1 changed files with 6 additions and 2 deletions
|
|
@ -133,7 +133,9 @@ const BulkSelect = ({
|
|||
};
|
||||
|
||||
// Utility function to convert from Content Sources to Image Builder custom repo API schema
|
||||
const convertSchemaToIBCustomRepo = (repo: ApiRepositoryResponseRead) => {
|
||||
export const convertSchemaToIBCustomRepo = (
|
||||
repo: ApiRepositoryResponseRead
|
||||
) => {
|
||||
const imageBuilderRepo: CustomRepository = {
|
||||
id: repo.uuid!,
|
||||
name: repo.name,
|
||||
|
|
@ -150,7 +152,9 @@ const convertSchemaToIBCustomRepo = (repo: ApiRepositoryResponseRead) => {
|
|||
};
|
||||
|
||||
// Utility function to convert from Content Sources to Image Builder payload repo API schema
|
||||
const convertSchemaToIBPayloadRepo = (repo: ApiRepositoryResponseRead) => {
|
||||
export const convertSchemaToIBPayloadRepo = (
|
||||
repo: ApiRepositoryResponseRead
|
||||
) => {
|
||||
const imageBuilderRepo: Repository = {
|
||||
baseurl: repo.url,
|
||||
rhsm: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue