Merge branch 'dev' into Fix-Pylint-no-self-use

This commit is contained in:
Zedifus 2022-07-18 21:09:26 +01:00
commit 44f3b903d4
3 changed files with 15 additions and 5 deletions

View File

@ -27,4 +27,3 @@ This checklist encourages us to confirm any changes have been analyzed to reduce
* [ ] Have you resolved any lint issues?
* [ ] Have you assigned a reviewer?
* [ ] Have you applied correct labels?
* [ ] Have you updated CHANGELOG.md?

View File

@ -1,9 +1,18 @@
# Changelog
## --- [4.0.6] - 2022/07/06
## --- [4.0.7] - 2022/07/18
### New features
- Task toggle (!398+)
- Basic API for modifying tasks (!398+)
- Task toggle ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/398))
- Basic API for modifying tasks ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/398))
### Bug fixes
- Fixes stats recording for Oracle hosts ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/397))
### Tweaks
None
### Lang
None
<br><br>
## --- [4.0.6] - 2022/07/06
### Bug fixes
- Improve the use of the object oriented architecture ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/400))
- Remove redundant path check on backup restore ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/390))

View File

@ -85,7 +85,9 @@ class Stats:
try:
cpu_freq = psutil.cpu_freq()
except NotImplementedError:
cpu_freq = psutil._common.scpufreq(current=0, min=0, max=0)
cpu_freq = None
if cpu_freq is None:
cpu_freq = psutil._common.scpufreq(current=-1, min=-1, max=-1)
memory = psutil.virtual_memory()
try:
node_stats: NodeStatsDict = {