FIX: fixed issue where the response of the kube api was not written correct
This commit is contained in:
@@ -226,12 +226,13 @@ namespace kubecontrol
|
||||
request.perform();
|
||||
|
||||
request.reset();
|
||||
auto response = mWriterChunk.getResponse();
|
||||
std::string response = mWriterChunk.getResponse();
|
||||
InfoPod.update(response);
|
||||
|
||||
while (InfoPod.Status != "Running") {
|
||||
while (InfoPod.Status != "Running" && InfoPod.Status != "Succeeded") {
|
||||
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(200));
|
||||
response = this->getInfo(curlURL, token);
|
||||
response = this->getInfo(curlURL, token);
|
||||
|
||||
InfoPod.update(response);
|
||||
|
||||
}
|
||||
@@ -348,8 +349,7 @@ namespace kubecontrol
|
||||
|
||||
|
||||
request.perform();
|
||||
auto response = mWriterChunk.getResponse();
|
||||
return response;
|
||||
return mWriterChunk.getResponse();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user