From f44125ccb70118fd167e9e9e4068739d5a3956b8 Mon Sep 17 00:00:00 2001 From: "Eric D. White" Date: Sun, 24 Aug 2014 21:07:26 +0100 Subject: [PATCH] Issue 8735 - module docker - expose values should be striped to ensure port forwarding works. --- library/cloud/docker | 1 + 1 file changed, 1 insertion(+) diff --git a/library/cloud/docker b/library/cloud/docker index eb379c27095..f14c5683999 100644 --- a/library/cloud/docker +++ b/library/cloud/docker @@ -450,6 +450,7 @@ class DockerManager: if expose_list: exposed = [] for port in expose_list: + port = port.strip() if port.endswith('/tcp') or port.endswith('/udp'): port_with_proto = tuple(port.split('/')) else: