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

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davco01a committed Apr 10, 2020
1 parent bad7ff5 commit 8e138fc
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/main/java/application/rest/StackUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -441,13 +441,12 @@ public static List allStacks(StackList fromKabanero, String namespace, List cura

kabDigest = (String) imageMap.get("digest");
image = (String) imageMap.get("imageName"); // docker.io/kabanero/nodejs
StringTokenizer st = new StringTokenizer(image,"/");

String containerRegistryURL = st.nextToken();
String crNameSpace = st.nextToken();

imageDigest = getImageDigestFromRegistry(name, versionNum, namespace, crNameSpace, containerRegistryURL);

if (image!=null) {
StringTokenizer st = new StringTokenizer(image,"/");
String containerRegistryURL = st.nextToken();
String crNameSpace = st.nextToken();
imageDigest = getImageDigestFromRegistry(name, versionNum, namespace, crNameSpace, containerRegistryURL);
}

String digestCheck="mismatched";
if (kabDigest!=null && imageDigest!=null) {
Expand Down

0 comments on commit 8e138fc

Please sign in to comment.