Skip to content

Commit

Permalink
Store a network members name
Browse files Browse the repository at this point in the history
Because the GET request to get a specific member just dumps
the whole member object, `name` is included there too for free.
  • Loading branch information
laduke committed Feb 1, 2024
1 parent c6d5dc1 commit b5ed8a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controller/EmbeddedNetworkController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,7 @@ void EmbeddedNetworkController::configureHTTPControlPlane(
if (b.count("noAutoAssignIps")) member["noAutoAssignIps"] = OSUtils::jsonBool(b["noAutoAssignIps"], false);
if (b.count("authenticationExpiryTime")) member["authenticationExpiryTime"] = (uint64_t)OSUtils::jsonInt(b["authenticationExpiryTime"], 0ULL);
if (b.count("authenticationURL")) member["authenticationURL"] = OSUtils::jsonString(b["authenticationURL"], "");
if (b.count("name")) member["name"] = OSUtils::jsonString(b["name"], "");

if (b.count("remoteTraceTarget")) {
const std::string rtt(OSUtils::jsonString(b["remoteTraceTarget"],""));
Expand Down

0 comments on commit b5ed8a3

Please sign in to comment.