Skip to content

Commit

Permalink
Merge pull request #660 from tulumvinh/3.11
Browse files Browse the repository at this point in the history
Eliminate assumption that existence of an element in a data structure means successful backup
  • Loading branch information
tulumvinh authored Feb 13, 2018
2 parents 88fec6e + c8cf4b9 commit e3588a0
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 e3588a0

Please sign in to comment.