diff options
Diffstat (limited to 'redfish-core/lib/network_protocol.hpp')
-rw-r--r-- | redfish-core/lib/network_protocol.hpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/redfish-core/lib/network_protocol.hpp b/redfish-core/lib/network_protocol.hpp index cfb4451466..3cf8e2d7ae 100644 --- a/redfish-core/lib/network_protocol.hpp +++ b/redfish-core/lib/network_protocol.hpp @@ -406,16 +406,16 @@ inline void requestRoutesNetworkProtocol(App& app) std::optional<bool> sshEnabled; // clang-format off - if (!json_util::readJsonPatch( - req, asyncResp->res, - "HostName", newHostName, - "NTP/NTPServers", ntpServers, - "NTP/ProtocolEnabled", ntpEnabled, - "IPMI/ProtocolEnabled", ipmiEnabled, - "SSH/ProtocolEnabled", sshEnabled)) - { - return; - } + if (!json_util::readJsonPatch( + req, asyncResp->res, + "HostName", newHostName, + "NTP/NTPServers", ntpServers, + "NTP/ProtocolEnabled", ntpEnabled, + "IPMI/ProtocolEnabled", ipmiEnabled, + "SSH/ProtocolEnabled", sshEnabled)) + { + return; + } // clang-format on asyncResp->res.result(boost::beast::http::status::no_content); |