Convert v to string

This commit is contained in:
Colin Hebert 2016-01-01 10:12:43 +01:00
parent 32ce8fbcb4
commit ad0a763661
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ func resourceDockerContainerCreate(d *schema.ResourceData, meta interface{}) err
} }
if v, ok := d.GetOk("network_mode"); ok { if v, ok := d.GetOk("network_mode"); ok {
hostConfig.NetworkMode = v hostConfig.NetworkMode = v.(string)
} }
createOpts.HostConfig = hostConfig createOpts.HostConfig = hostConfig