diff options
Diffstat (limited to 'redfish-core/lib/hypervisor_system.hpp')
-rw-r--r-- | redfish-core/lib/hypervisor_system.hpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/redfish-core/lib/hypervisor_system.hpp b/redfish-core/lib/hypervisor_system.hpp index 5a7105fc3e..52aeb4330a 100644 --- a/redfish-core/lib/hypervisor_system.hpp +++ b/redfish-core/lib/hypervisor_system.hpp @@ -588,11 +588,8 @@ inline void handleHypervisorIPv4StaticPatch( address, "SubnetMask", subnetMask, "Gateway", gateway)) { - messages::propertyValueFormatError( - asyncResp->res, - thisJson.dump(2, ' ', true, - nlohmann::json::error_handler_t::replace), - pathString); + messages::propertyValueFormatError(asyncResp->res, thisJson, + pathString); return; } @@ -893,11 +890,8 @@ inline void handleHypervisorEthernetInterfacePatch( // One and only one hypervisor instance supported if (ipv4Static.size() != 1) { - messages::propertyValueFormatError( - asyncResp->res, - ipv4Static.dump(2, ' ', true, - nlohmann::json::error_handler_t::replace), - "IPv4StaticAddresses"); + messages::propertyValueFormatError(asyncResp->res, ipv4Static, + "IPv4StaticAddresses"); return; } |