Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
alihm committed Jun 10, 2024
1 parent f845f4a commit b336180
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ClusterOperator/Operator.js
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ class Operator {
let MasterIP = this.myIP;
// ask second candidate for confirmation
if (this.masterCandidates.length > 1) MasterIP = await fluxAPI.getMaster(this.masterCandidates[1], config.containerApiPort);

log.info(`asking second candidate for confirmation: ${MasterIP}`);
if (MasterIP === this.myIP) {
this.IamMaster = true;
this.masterNode = this.myIP;
Expand Down Expand Up @@ -761,6 +761,7 @@ class Operator {
* [getMaster]
*/
static getMaster() {
log.debug(`master node:${this.masterNode}`);
if (this.masterNode === null) {
if (this.masterCandidates.length) {
return this.masterCandidates[0];
Expand Down

0 comments on commit b336180

Please sign in to comment.