From e54a11db11ddface22acfd29657eaf967827387a Mon Sep 17 00:00:00 2001 From: KIRAN KASHALKAR Date: Wed, 31 May 2017 12:00:48 -0400 Subject: [PATCH] RIFT-16840: VNF config-primitive job does not contain details Signed-off-by: KIRAN KASHALKAR --- .../launchpad/src/launchpad_card/jobListCard.jsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/skyquake/plugins/launchpad/src/launchpad_card/jobListCard.jsx b/skyquake/plugins/launchpad/src/launchpad_card/jobListCard.jsx index 5cdcb8551..8253f0a1a 100644 --- a/skyquake/plugins/launchpad/src/launchpad_card/jobListCard.jsx +++ b/skyquake/plugins/launchpad/src/launchpad_card/jobListCard.jsx @@ -57,8 +57,13 @@ class JobListCard extends React.Component { } getJobDetails(job) { let jobDetails = null; - if (job['job-status-details']) { - let jobDetailsArray = job['job-status-details'].split(/\\n/); + if (job['job-status-details'] || job['execution-error-details']) { + let jobDetailsArray = []; + if (job['job-status-details']) { + jobDetailsArray = job['job-status-details'].split(/\\n/); + } else if (job['execution-error-details']) { + jobDetailsArray = job['execution-error-details'].split(/\\n/); + } let jobDetailsText = []; jobDetailsArray && jobDetailsArray.map((jobDetail) => { jobDetailsText.push(jobDetail); @@ -140,6 +145,7 @@ class JobListCard extends React.Component { let self = this; let jobListStatus = this.getStatusColor(props['execution-status'] ); let hideParameters = this.state.hideParameters; + let jobDetailsHTML = this.getJobDetails(this.props); return (
@@ -169,6 +175,7 @@ class JobListCard extends React.Component {
+ {jobDetailsHTML} ) } -- 2.25.1