nanovms / ops

ops - build and run nanos unikernels
https://ops.city
MIT License
1.27k stars 132 forks source link

Add checks for data results from ProxMox API #1364

Closed asyslinux closed 2 years ago

asyslinux commented 2 years ago

Added functions with checks {"data": null} or {"data":[]} results from ProxMox API. This is need for checking permissions in proxmox, correctness environment variables etc. It is required in order to stop the ops giving the result as if everything is fine, but in fact nothing works with proxmox. Currently in error messages uses 'local' and 'local-lvm' hard-coded words, later when we have customizable name of storages, this words be replaced by variables.