Skip to content

Commit

Permalink
v3.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewalanpenning committed Aug 31, 2023
1 parent 2c2acd2 commit 31f878a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v3.8.0
- Added a check for a null config in storage pools
- Added image token cleanup with downloading images while in a cluster


# v3.7.0
- 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
- Added qemu.conf to virtual machine configuration options
Expand Down
2 changes: 1 addition & 1 deletion lxd-dashboard/backend/config/about.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<body class="">
<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>
<p>
<strong>Version</strong>: <span id="versionNumber">v3.7.0</span> <br />
<strong>Version</strong>: <span id="versionNumber">v3.8.0</span> <br />
<strong>License</strong>: AGPL-3.0 <br />
<strong>URL</strong>: https://lxdware.com <br />
</p>
Expand Down
7 changes: 7 additions & 0 deletions lxd-dashboard/backend/lxd/operations.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,13 @@
case "Updating instance":
$results .= " " . $instance;
break;
case "Image download token":
#Remove image tokens left over from image downloads when in a cluster
if ($running_task['may_cancel'] == true){
$url = $base_url . "/1.0/operations/" . $running_task['id'];
$results = sendCurlRequest($action, "DELETE", $url);
}
break;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion lxd-dashboard/backend/lxd/storage-pools.php
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@
echo '"' . htmlentities($storage_pool['driver']) . '",';
echo '"' . htmlentities($storage_pool['status']) . '",';

if(array_key_exists('source', $storage_pool['config']))
if(isset($storage_pool['config']) && array_key_exists('source', $storage_pool['config']))
$storage_pool_source = (isset($storage_pool['config']['source'])) ? $storage_pool['config']['source'] : "N/A";
else
$storage_pool_source = "N/A";
Expand Down

0 comments on commit 31f878a

Please sign in to comment.