aboutsummaryrefslogtreecommitdiff
path: root/libvirt
diff options
context:
space:
mode:
authorJose David Martin Nieto <j.david.nieto@gmail.com>2016-08-09 15:48:17 +0200
committerJose David Martin Nieto <j.david.nieto@gmail.com>2016-08-09 15:48:17 +0200
commit6b9d46f313665fd240fe5a18f1fb766714319cf9 (patch)
tree9a33b939b5e4ff105d0c3e7d4236bf2a77aa94a1 /libvirt
parentc09a88d3d3da7a7977e80a807f7f97275dea5e40 (diff)
downloadterraform-provider-libvirt-6b9d46f313665fd240fe5a18f1fb766714319cf9.tar
terraform-provider-libvirt-6b9d46f313665fd240fe5a18f1fb766714319cf9.tar.gz
fixed addresses definition in libvirt_domain
Diffstat (limited to 'libvirt')
-rw-r--r--libvirt/resource_libvirt_domain.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvirt/resource_libvirt_domain.go b/libvirt/resource_libvirt_domain.go
index 187b14ed..d9945f73 100644
--- a/libvirt/resource_libvirt_domain.go
+++ b/libvirt/resource_libvirt_domain.go
@@ -207,7 +207,7 @@ func resourceLibvirtDomainCreate(d *schema.ResourceData, meta interface{}) error
networkName, err := network.GetName()
if err != nil {
- return fmt.Errorf("Error retrieving volume name: %s", err)
+ return fmt.Errorf("Error retrieving network name: %s", err)
}
networkDef, err := newDefNetworkfromLibvirt(&network)
if !networkDef.HasDHCP() {
@@ -218,7 +218,7 @@ func resourceLibvirtDomainCreate(d *schema.ResourceData, meta interface{}) error
if hostnameI, ok := d.GetOk(prefix + ".hostname"); ok {
hostname = hostnameI.(string)
}
- if addresses, ok := d.GetOk("addresses"); ok {
+ if addresses, ok := d.GetOk(prefix + ".addresses"); ok {
// some IP(s) provided
for _, addressI := range addresses.([]interface{}) {
address := addressI.(string)