From d536c7fe3811ce95915904698d446bb1539c0546 Mon Sep 17 00:00:00 2001 From: Yaroslav Grishajev Date: Mon, 13 May 2024 16:37:30 +0200 Subject: [PATCH] fix(sdl): fallback credentials email to an empty string refs akash-network/cloudmos#133 --- src/sdl/SDL/SDL.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/sdl/SDL/SDL.ts b/src/sdl/SDL/SDL.ts index cbf9584..ed2035e 100644 --- a/src/sdl/SDL/SDL.ts +++ b/src/sdl/SDL/SDL.ts @@ -664,6 +664,11 @@ export class SDL { const service = this.data.services[name]; const deployment = this.data.deployment[name]; const profile = this.data.profiles.compute[deployment[placement].profile]; + const credentials = service.credentials || null; + + if (credentials && !credentials.email) { + credentials.email = ""; + } return { name: name, @@ -675,7 +680,7 @@ export class SDL { count: deployment[placement].count, expose: this.v3ManifestExpose(service), params: this.v3ManifestServiceParams(service.params), - credentials: service.credentials || null + credentials }; }