changes for 503 error 49/6349/1
authorvt402f <vt00325492@techmahindra.com>
Sat, 25 Jan 2020 02:19:23 +0000 (21:19 -0500)
committervt402f <vt00325492@techmahindra.com>
Sat, 25 Jan 2020 02:19:36 +0000 (21:19 -0500)
Change-Id: Ic49f71a85388169682500086e12d3110cd49119d
Signed-off-by: vt402f <vt00325492@techmahindra.com>
elk-client/src/main/java/org/acumos/elk/client/service/SnapshotRepositoryServiceImpl.java

index 56febb8..7af1731 100644 (file)
@@ -259,7 +259,7 @@ public class SnapshotRepositoryServiceImpl extends AbstractELKClientConnection i
                                        logger.debug("result : {}", result);
                                        resultList.add(result.trim());
                                        logger.debug("resultList.size(): {}", resultList.size());
-                                       if (action.equalsIgnoreCase("delete")) {
+                                       if (action.equalsIgnoreCase("delete") || action.equalsIgnoreCase("restore")) {
                                                ElkRepositoriesRequest elkDeleteRepositoriesRequest= new ElkRepositoriesRequest();
                                                elkDeleteRepositoriesRequest.setNodeTimeout(ElkClientConstants.TIME_ONE_MINT_OUT);
                                                elkDeleteRepositoriesRequest.setRepositoryName(repoName);