fix: Fix GPU type
GPU type was lost for visual GPU Change-Id: Ibcf62cefb554172841ffee1fffad49cb2ba40dab
This commit is contained in:
parent
b2801a7913
commit
ccf2942c78
@ -159,7 +159,7 @@ export class StepCreate extends StepAction {
|
|||||||
? `${gpuType}:${gpuNumber},${usbType}:${usbNumber}`
|
? `${gpuType}:${gpuNumber},${usbType}:${usbNumber}`
|
||||||
: `${gpuType}:${gpuNumber}`;
|
: `${gpuType}:${gpuNumber}`;
|
||||||
} else if (isGpuVisualType) {
|
} else if (isGpuVisualType) {
|
||||||
extraSpecs['resources:VGPU'] = gpuNumber;
|
extraSpecs['resources:VGPU'] = `${gpuType}:${gpuNumber}`;
|
||||||
}
|
}
|
||||||
if (isComputeOptimized(category)) {
|
if (isComputeOptimized(category)) {
|
||||||
extraSpecs['hw:numa_nodes'] = numaNodes.length;
|
extraSpecs['hw:numa_nodes'] = numaNodes.length;
|
||||||
|
@ -39,8 +39,8 @@ export class FlavorStore extends Base {
|
|||||||
let usbType = '-';
|
let usbType = '-';
|
||||||
let usbCount = '-';
|
let usbCount = '-';
|
||||||
if (vgpu) {
|
if (vgpu) {
|
||||||
gpuType = 'vgpu';
|
gpuType = (vgpu || '').split(':')[0];
|
||||||
gpuCount = vgpu;
|
gpuCount = (vgpu || '').split(':')[1];
|
||||||
}
|
}
|
||||||
if (alias) {
|
if (alias) {
|
||||||
if (category && !category.includes('visualization_')) {
|
if (category && !category.includes('visualization_')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user