Skip to content
This repository has been archived by the owner on Oct 16, 2018. It is now read-only.

Commit

Permalink
CSAFE-7695: container name missing when suffix not given
Browse files Browse the repository at this point in the history
  • Loading branch information
nlahmedIBM committed Dec 2, 2016
1 parent 76ce20f commit eac1c11
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,8 @@ public String apply(final Map<String, String> input) {
String suffix = input.get(Context.X_OG_CONTAINER_SUFFIX);
if (suffix != null) {
if (Integer.parseInt(suffix) == -1) {
// use the container name provided without suffix
input.put(Context.X_OG_CONTAINER_NAME, container);
return container;
} else {
String containerName = container.concat(suffix);
Expand All @@ -603,6 +605,8 @@ public String apply(final Map<String, String> input) {
return container.concat(suffix);
} else {
input.put(Context.X_OG_CONTAINER_SUFFIX, "-1");
// use the container name provided without suffix
input.put(Context.X_OG_CONTAINER_NAME, container);
return container;
}
}
Expand Down

0 comments on commit eac1c11

Please sign in to comment.