From ad0a76366101d79ba19f8e944120c91342d8ba5c Mon Sep 17 00:00:00 2001 From: Colin Hebert Date: Fri, 1 Jan 2016 10:12:43 +0100 Subject: [PATCH] Convert v to string --- builtin/providers/docker/resource_docker_container_funcs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/providers/docker/resource_docker_container_funcs.go b/builtin/providers/docker/resource_docker_container_funcs.go index 110d5cc85..5be5091e4 100644 --- a/builtin/providers/docker/resource_docker_container_funcs.go +++ b/builtin/providers/docker/resource_docker_container_funcs.go @@ -137,7 +137,7 @@ func resourceDockerContainerCreate(d *schema.ResourceData, meta interface{}) err } if v, ok := d.GetOk("network_mode"); ok { - hostConfig.NetworkMode = v + hostConfig.NetworkMode = v.(string) } createOpts.HostConfig = hostConfig