From b00baa7028447b18e09491b95514c87e68c0e6a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Wed, 9 May 2018 14:23:39 +0100 Subject: [PATCH] fix(instances): don't send cns names unless they exist --- consoles/my-joy-instances/src/containers/create.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/consoles/my-joy-instances/src/containers/create.js b/consoles/my-joy-instances/src/containers/create.js index 67b444b2..d7e92b0b 100644 --- a/consoles/my-joy-instances/src/containers/create.js +++ b/consoles/my-joy-instances/src/containers/create.js @@ -339,7 +339,12 @@ export default compose( }); } - if (steps.cns && (steps.cns.serviceNames && steps.cns.cnsEnabled)) { + if ( + steps.cns && + (steps.cns.serviceNames && + steps.cns.serviceNames.length && + steps.cns.cnsEnabled) + ) { _tags.push({ name: 'triton.cns.services', value: steps.cns.serviceNames.join(',')