diff --git a/ProcessContainers/Containers.h b/ProcessContainers/Containers.h index bbc9a006c..46aadfb8e 100644 --- a/ProcessContainers/Containers.h +++ b/ProcessContainers/Containers.h @@ -63,7 +63,7 @@ namespace Plugin { uint32_t endpoint_start(const JsonData::Containers::StartParamsData& params); uint32_t endpoint_stop(const JsonData::Containers::StopParamsData& params); uint32_t get_containers(Core::JSON::ArrayType& response) const; - uint32_t get_networks(const string& index, Core::JSON::ArrayType& response) const; + uint32_t get_networks(const string& index, Core::JSON::ArrayType& response) const; uint32_t get_memory(const string& index, JsonData::Containers::MemoryData& response) const; uint32_t get_cpu(const string& index, JsonData::Containers::CpuData& response) const; }; diff --git a/ProcessContainers/ContainersJsonRpc.cpp b/ProcessContainers/ContainersJsonRpc.cpp index dbe112321..821db9bd6 100644 --- a/ProcessContainers/ContainersJsonRpc.cpp +++ b/ProcessContainers/ContainersJsonRpc.cpp @@ -36,7 +36,7 @@ namespace Plugin { Register(_T("start"), &Containers::endpoint_start, this); Register(_T("stop"), &Containers::endpoint_stop, this); Property>(_T("containers"), &Containers::get_containers, nullptr, this); - Property>(_T("networks"), &Containers::get_networks, nullptr, this); + Property>(_T("networks"), &Containers::get_networks, nullptr, this); Property(_T("memory"), &Containers::get_memory, nullptr, this); Property(_T("cpu"), &Containers::get_cpu, nullptr, this); } @@ -137,7 +137,7 @@ namespace Plugin { // Return codes: // - ERROR_NONE: Success // - ERROR_UNAVAILABLE: Container not found - uint32_t Containers::get_networks(const string& index, Core::JSON::ArrayType& response) const + uint32_t Containers::get_networks(const string& index, Core::JSON::ArrayType& response) const { uint32_t result = Core::ERROR_NONE; @@ -149,7 +149,7 @@ namespace Plugin { if (iterator != nullptr) { while(iterator->Next() == true) { - NetworksData networkData; + NetworksResultDataElem networkData; networkData.Interface = iterator->Name();