Skip to content

Commit 31f878a

Browse files
v3.8.0
1 parent 2c2acd2 commit 31f878a

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# v3.8.0
2+
- Added a check for a null config in storage pools
3+
- Added image token cleanup with downloading images while in a cluster
4+
5+
16
# v3.7.0
27
- Set console/exec terminal height to 25 rows because xterm.js defaults to 24 and lxd defaults to 25 there was a single row mismatch
38
- Added qemu.conf to virtual machine configuration options

lxd-dashboard/backend/config/about.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<body class="">
4444
<p>The open source LXD Dashboard is developed by LXDWARE and provides a web-based user interface capable of managing multiple LXD servers from a single location.</p>
4545
<p>
46-
<strong>Version</strong>: <span id="versionNumber">v3.7.0</span> <br />
46+
<strong>Version</strong>: <span id="versionNumber">v3.8.0</span> <br />
4747
<strong>License</strong>: AGPL-3.0 <br />
4848
<strong>URL</strong>: https://lxdware.com <br />
4949
</p>

lxd-dashboard/backend/lxd/operations.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,13 @@
144144
case "Updating instance":
145145
$results .= " " . $instance;
146146
break;
147+
case "Image download token":
148+
#Remove image tokens left over from image downloads when in a cluster
149+
if ($running_task['may_cancel'] == true){
150+
$url = $base_url . "/1.0/operations/" . $running_task['id'];
151+
$results = sendCurlRequest($action, "DELETE", $url);
152+
}
153+
break;
147154
}
148155
}
149156
}

lxd-dashboard/backend/lxd/storage-pools.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@
453453
echo '"' . htmlentities($storage_pool['driver']) . '",';
454454
echo '"' . htmlentities($storage_pool['status']) . '",';
455455

456-
if(array_key_exists('source', $storage_pool['config']))
456+
if(isset($storage_pool['config']) && array_key_exists('source', $storage_pool['config']))
457457
$storage_pool_source = (isset($storage_pool['config']['source'])) ? $storage_pool['config']['source'] : "N/A";
458458
else
459459
$storage_pool_source = "N/A";

0 commit comments

Comments
 (0)