This commit is contained in:
Colin Hebert 2016-01-04 21:03:53 +01:00
parent 6e36095644
commit 35188f3694
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ func resourceDockerContainerCreate(d *schema.ResourceData, meta interface{}) err
d.SetId(retContainer.ID) d.SetId(retContainer.ID)
if v, ok := d.GetOk("networks"); ok { if v, ok := d.GetOk("networks"); ok {
connectionOpts := &dc.NetworkConnectionOptions{Container: retContainer.ID} connectionOpts := dc.NetworkConnectionOptions{Container: retContainer.ID}
for _, network := range v.(*schema.Set).List() { for _, network := range v.(*schema.Set).List() {
client.ConnectNetwork(network.(string), connectionOpts) client.ConnectNetwork(network.(string), connectionOpts)