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