tested real proxmox connection
--> passed
This commit is contained in:
@@ -68,6 +68,9 @@ func (h Handler) ListProjectVMs(w http.ResponseWriter, r *http.Request) {
|
||||
writeError(w, http.StatusNotFound, "project_not_found")
|
||||
return
|
||||
}
|
||||
if vms == nil {
|
||||
vms = []VM{}
|
||||
}
|
||||
|
||||
writeJSON(w, http.StatusOK, map[string][]VM{"data": vms})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user