1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

B #5490: trim in USER_TEMPLATE/READY (#1403)

This commit is contained in:
Jorge Miguel Lobo Escalona 2021-08-09 20:15:07 +02:00 committed by GitHub
parent 5370d945ae
commit a3cd18cf8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -227,7 +227,7 @@ define(function(require) {
var ready = "";
var check = "<span class=\"has-tip\" title=\""+Locale.tr("The VM is ready")+"\"><i class=\"fas fa-check\"/></span>";
if (ready_status_gate && data.VM.USER_TEMPLATE && data.VM.USER_TEMPLATE.READY){
ready = (data.VM.USER_TEMPLATE.READY === "YES")
ready = (data.VM.USER_TEMPLATE.READY.trim().toUpperCase() === "YES")
? check
: "<span class=\"has-tip\" title=\""+
Locale.tr("Waiting for the VM to be ready")+"\"><i class=\"fas fa-clock\"/></span>";