Skip to content

Commit

Permalink
FAB-694: Allow docker name to be picked up
Browse files Browse the repository at this point in the history
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 <latitia.haskins@gmail.com>
  • Loading branch information
lhaskins committed Oct 26, 2016
1 parent 775faf8 commit 1a1ccf3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bddtests/steps/bdd_compose_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1a1ccf3

Please sign in to comment.