fix(instances): don't send cns names unless they exist
This commit is contained in:
parent
588b833045
commit
b00baa7028
@ -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(',')
|
||||
|
Loading…
Reference in New Issue
Block a user