mirror of
https://github.com/kasmtech/kasm-install-wizard.git
synced 2026-07-17 16:35:08 +00:00
KASM-8264 Don't call setGpu when there aren't any images
This commit is contained in:
parent
d4b7db69f4
commit
7924f882db
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
|
@ -196,7 +196,7 @@ io.on('connection', async function (socket) {
|
|||
}
|
||||
|
||||
// GPU yaml merge
|
||||
if (installSettings.forceGpu !== 'disabled') {
|
||||
if (installSettings.forceGpu !== 'disabled' && imagesI.images) {
|
||||
imagesI = await setGpu(imagesI);
|
||||
}
|
||||
|
||||
|
|
@ -236,7 +236,7 @@ io.on('connection', async function (socket) {
|
|||
}
|
||||
|
||||
// GPU yaml merge
|
||||
if (upgradeSettings.forceGpu !== 'disabled') {
|
||||
if (upgradeSettings.forceGpu !== 'disabled' && imagesI.images) {
|
||||
imagesI = await setGpu(imagesI);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue