From 44f90cf7a88228d85199225c5ce21ef0574b4f45 Mon Sep 17 00:00:00 2001 From: Andrew Zong Date: Mon, 18 Nov 2019 16:28:13 +0800 Subject: [PATCH] Update the configuration tips for licensing process update. --- app/waf/src/controllers/adc.controller.ts | 6 +++++- docs/configuration.rst | 14 ++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/app/waf/src/controllers/adc.controller.ts b/app/waf/src/controllers/adc.controller.ts index 357f45869..f4098af6a 100644 --- a/app/waf/src/controllers/adc.controller.ts +++ b/app/waf/src/controllers/adc.controller.ts @@ -194,7 +194,10 @@ export class AdcController extends BaseController { ) .then(b => this.serialize(adc, {status: AdcState.LICENSED, lastErr: ''})) .catch(e => - this.serialize(adc, {status: AdcState.LICENSERROR, lastErr: e}), + this.serialize(adc, { + status: AdcState.LICENSERROR, + lastErr: JSON.stringify(e.message), + }), ); } @@ -390,6 +393,7 @@ export class AdcController extends BaseController { let data = await this.adcRepository.findById(id, undefined, { tenantId: await this.tenantId, }); + return new Response(Adc, data); } diff --git a/docs/configuration.rst b/docs/configuration.rst index 4f06f91d4..1fb449d9d 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -17,6 +17,8 @@ The configuration file for ADCaaS application is `appcluster.rc