diff options
author | Jiaqing Zhao <jiaqing.zhao@intel.com> | 2022-06-02 12:47:58 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-06-02 18:55:17 +0300 |
commit | aa6d4537531a9242a051579ced5fd06837b5bb24 (patch) | |
tree | a4603d97e292d7ae8386c62948c87de7da492856 | |
parent | 4ee8e21100dbc8cefd941b9728c740189c4e81b8 (diff) | |
download | bmcweb-aa6d4537531a9242a051579ced5fd06837b5bb24.tar.xz |
Fix indentation of clang-format off blocks
After applying the new clang-format rule in commit 002d39b ("Try to fix
the lambda formatting issue"), some clang-format off blocks need to be
reindented.
Tested:
Build pass. Just removed some whitespaces.
Change-Id: Ib56ebecfaf774fe99230779adba49537c9b58b8d
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
-rw-r--r-- | redfish-core/lib/network_protocol.hpp | 20 | ||||
-rw-r--r-- | redfish-core/lib/systems.hpp | 44 |
2 files changed, 32 insertions, 32 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); diff --git a/redfish-core/lib/systems.hpp b/redfish-core/lib/systems.hpp index fdffe6bc9f..9aac3793c6 100644 --- a/redfish-core/lib/systems.hpp +++ b/redfish-core/lib/systems.hpp @@ -2973,28 +2973,28 @@ inline void requestRoutesSystems(App& app) std::optional<uint64_t> ipsExitTime; // clang-format off - if (!json_util::readJsonPatch( - req, asyncResp->res, - "IndicatorLED", indicatorLed, - "LocationIndicatorActive", locationIndicatorActive, - "AssetTag", assetTag, - "PowerRestorePolicy", powerRestorePolicy, - "PowerMode", powerMode, - "HostWatchdogTimer/FunctionEnabled", wdtEnable, - "HostWatchdogTimer/TimeoutAction", wdtTimeOutAction, - "Boot/BootSourceOverrideTarget", bootSource, - "Boot/BootSourceOverrideMode", bootType, - "Boot/BootSourceOverrideEnabled", bootEnable, - "Boot/AutomaticRetryConfig", bootAutomaticRetry, - "Boot/TrustedModuleRequiredToBoot", bootTrustedModuleRequired, - "IdlePowerSaver/Enabled", ipsEnable, - "IdlePowerSaver/EnterUtilizationPercent", ipsEnterUtil, - "IdlePowerSaver/EnterDwellTimeSeconds", ipsEnterTime, - "IdlePowerSaver/ExitUtilizationPercent", ipsExitUtil, - "IdlePowerSaver/ExitDwellTimeSeconds", ipsExitTime)) - { - return; - } + if (!json_util::readJsonPatch( + req, asyncResp->res, + "IndicatorLED", indicatorLed, + "LocationIndicatorActive", locationIndicatorActive, + "AssetTag", assetTag, + "PowerRestorePolicy", powerRestorePolicy, + "PowerMode", powerMode, + "HostWatchdogTimer/FunctionEnabled", wdtEnable, + "HostWatchdogTimer/TimeoutAction", wdtTimeOutAction, + "Boot/BootSourceOverrideTarget", bootSource, + "Boot/BootSourceOverrideMode", bootType, + "Boot/BootSourceOverrideEnabled", bootEnable, + "Boot/AutomaticRetryConfig", bootAutomaticRetry, + "Boot/TrustedModuleRequiredToBoot", bootTrustedModuleRequired, + "IdlePowerSaver/Enabled", ipsEnable, + "IdlePowerSaver/EnterUtilizationPercent", ipsEnterUtil, + "IdlePowerSaver/EnterDwellTimeSeconds", ipsEnterTime, + "IdlePowerSaver/ExitUtilizationPercent", ipsExitUtil, + "IdlePowerSaver/ExitDwellTimeSeconds", ipsExitTime)) + { + return; + } // clang-format on asyncResp->res.result(boost::beast::http::status::no_content); |