Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
fix the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davco01a committed Jun 4, 2020
1 parent 87c42d9 commit e911d87
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/application/rest/StackUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,12 @@ public static String digestCheck(String kabDigest, String imageDigest, String st
digestCheck="unknown";
}
if (status!=null) {
status=status.substring(0, 6);
if (!"active".contentEquals(status)) {
if (status.contains("active")) {
status=status.substring(0, 6);
if (!"active".contentEquals(status)) {
digestCheck = "NA";
}
} else {
digestCheck = "NA";
}
} else {
Expand Down

0 comments on commit e911d87

Please sign in to comment.