From f40eba0371465c78ce3e322561590c30074d2b38 Mon Sep 17 00:00:00 2001 From: Tobias Urdin Date: Wed, 22 Aug 2018 18:24:37 +0200 Subject: [PATCH] Fix show certificate button returning invalid CA When trying to download the CA certificate from the dashboard by clicking the "Show Certificate" button it will return undefined. Change-Id: Ibb884835ec9a82df715d0a6485f16124622516e0 Closes-Bug: 1769918 Story: 2003527 Task: 24806 --- .../clusters/show-certificate/show-certificate.service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magnum_ui/static/dashboard/container-infra/clusters/show-certificate/show-certificate.service.js b/magnum_ui/static/dashboard/container-infra/clusters/show-certificate/show-certificate.service.js index aef3e8d9..e84f9b92 100644 --- a/magnum_ui/static/dashboard/container-infra/clusters/show-certificate/show-certificate.service.js +++ b/magnum_ui/static/dashboard/container-infra/clusters/show-certificate/show-certificate.service.js @@ -52,7 +52,7 @@ function perform(selected) { // get certificate return magnum.showCertificate(selected.id).then(function(response) { - textDownload.downloadTextFile(response.pem, selected.name + "_ca.pem"); + textDownload.downloadTextFile(response.data.pem, selected.name + "_ca.pem"); }); }