From 1a1ccf33de421632214532500d239e347ce2c4ea Mon Sep 17 00:00:00 2001 From: Latitia M Haskins Date: Wed, 26 Oct 2016 10:28:48 -0400 Subject: [PATCH] FAB-694: Allow docker name to be picked up Workaround for issue with docker-compose returning the service name instead of the container name. This behavior is sporatic, so this workaround allows for the correct selection of the desired container regardless of which value is returned when stopping and starting a peer using 'docker stop/start'. Change-Id: I5a8086c105d2c6971999fac0275835005be0c948 Signed-off-by: Latitia M Haskins --- bddtests/steps/bdd_compose_util.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bddtests/steps/bdd_compose_util.py b/bddtests/steps/bdd_compose_util.py index 1c0f516fc4f..bc48126123a 100644 --- a/bddtests/steps/bdd_compose_util.py +++ b/bddtests/steps/bdd_compose_util.py @@ -84,6 +84,8 @@ def getContainerNamesFromContext(context): if len(tokens) > 1: thisContainer = tokens[1] + if hasattr(context, "containerAliasMap"): + thisContainer = context.containerAliasMap.get(tokens[1], tokens[1]) if thisContainer not in containerNames: containerNames.append(thisContainer)