Skip to content

Commit

Permalink
Eliminate assumption that existence of an element in a data structure…
Browse files Browse the repository at this point in the history
… means successful backup
  • Loading branch information
tulumvinh committed Feb 13, 2018
1 parent 88fec6e commit c8cf4b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public Response statusByDate(@PathParam("date") String date) throws Exception {
if (metadataLinkedList != null && !metadataLinkedList.isEmpty()) {
// backup exist base on requested date, lets fetch more of its metadata
BackupMetadata bkupMetadata = metadataLinkedList.get(0);
object.put("Snapshotstatus", true);
object.put("Snapshotstatus", bkupMetadata.getStatus().equals(Status.FINISHED));
String token = bkupMetadata.getToken();
if (token != null && !token.isEmpty()) {
object.put("token", bkupMetadata.getToken());
Expand Down

0 comments on commit c8cf4b9

Please sign in to comment.