fix(instances): don't send cns names unless they exist

This commit is contained in:
Sérgio Ramos 2018-05-09 14:23:39 +01:00
parent 588b833045
commit b00baa7028

View File

@ -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(',')