SadiJr commented on code in PR #6320:
URL: https://github.com/apache/cloudstack/pull/6320#discussion_r870703911
##########
plugins/backup/veeam/src/main/java/org/apache/cloudstack/backup/veeam/VeeamClient.java:
##########
@@ -324,6 +316,21 @@ private boolean checkTaskStatus(final HttpResponse
response) throws IOException
return false;
}
+ protected boolean checkIfRestoreSessionFinished(String type, String path)
throws IOException {
+ for (int j = 0; j < this.restoreTimeout; j++) {
+ HttpResponse relatedResponse = get(path);
+ RestoreSession session =
parseRestoreSessionResponse(relatedResponse);
+ if (session.getResult().equals("Success")) {
+ return true;
+ }
+ try {
+ Thread.sleep(1000);
+ } catch (InterruptedException ignored) {
+ }
Review Comment:
Done, thanks for the suggestion
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]