diff --git a/src/commands/network.ts b/src/commands/network.ts index 3dc872550..3847aff90 100644 --- a/src/commands/network.ts +++ b/src/commands/network.ts @@ -766,14 +766,12 @@ export class NetworkCommand extends BaseCommand { const config = ctx.config; // HAProxy - // TODO: @Lenin, needs to use config.consensusNodes - for (const nodeAlias of config.nodeAliases) { + for (const consensusNode of config.consensusNodes) { subTasks.push({ - title: `Check HAProxy for: ${chalk.yellow(nodeAlias)}`, - // TODO: @Lenin, needs to use config.consensusNodes for both node name and context + title: `Check HAProxy for: ${chalk.yellow(consensusNode.name)}, cluster: ${chalk.yellow(consensusNode.cluster)}`, task: async () => await self.k8Factory - .default() + .getK8(consensusNode.context) .pods() .waitForRunningPhase( config.namespace,