Skip to content

Commit

Permalink
added missing sentinel subcommand
Browse files Browse the repository at this point in the history
- "deny-scripts-reconfig" was not recognized in conf file due to missing mapping
  • Loading branch information
tporadowski committed Jan 22, 2020
1 parent 7e7056f commit 0896406
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Win32_Interop/Win32_CommandLine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ typedef class SentinelParams : public ParamExtractor {
{ "known-sentinel", &fp4 }, // sentinel known-sentinel <name> <ip> <port> [runid]
{ "announce-ip", &fp1 }, // sentinel announce-ip <ip>
{ "announce-port", &fp1 }, // sentinel announce-port <port>
{ "myid", &fp1 } // sentinel myid <id>
{ "myid", &fp1 }, // sentinel myid <id>
{ "deny-scripts-reconfig", &fp1 } // sentinel deny-scripts-reconfig [yes/no]
};
}

Expand All @@ -313,7 +314,7 @@ typedef class SentinelParams : public ParamExtractor {
throw invalid_argument(err.str());
}
if (subCommands.find(argv[argStartIndex + 1]) == subCommands.end()) {
err << "Could not find sentinal subcommand " << argv[argStartIndex + 1];
err << "Could not find sentinel subcommand " << argv[argStartIndex + 1];
throw invalid_argument(err.str());
}

Expand All @@ -336,7 +337,7 @@ typedef class SentinelParams : public ParamExtractor {
}
string subcommand = tokens.at(startIndex + 1);
if (subCommands.find(subcommand) == subCommands.end()) {
err << "Could not find sentinal subcommand " << subcommand;
err << "Could not find sentinel subcommand " << subcommand;
throw invalid_argument(err.str());
}

Expand Down

0 comments on commit 0896406

Please sign in to comment.