1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

F #5034: Comment code (#787)

Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
This commit is contained in:
Jorge Miguel Lobo Escalona 2021-02-10 11:04:13 +01:00 committed by GitHub
parent 2ed1191622
commit 947c9716cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,6 +185,8 @@ define(function(require) {
function leasesClock(element){
var rtn = "";
// The charter info is pulled from the schedule action of the first VM of the first role
// (element.TEMPLATE.BODY.roles[0].vm_template_contents.SCHED_ACTION)
if(element && element.TEMPLATE && element.TEMPLATE.BODY && element.TEMPLATE.BODY.start_time && element.TEMPLATE.BODY.roles){
var startTime = element.TEMPLATE.BODY.start_time;
var roles = Array.isArray(element.TEMPLATE.BODY.roles)? element.TEMPLATE.BODY.roles: [element.TEMPLATE.BODY.roles];