diff options
author | Flavio Castelli <fcastelli@suse.com> | 2016-06-27 17:13:26 +0200 |
---|---|---|
committer | Flavio Castelli <fcastelli@suse.com> | 2016-06-27 17:13:26 +0200 |
commit | c5ab19a8135306d23b6ad3ad11d21f6c9557584d (patch) | |
tree | 03e1c74d5641fb221c2fd4d3409c1d65a2cc7eb2 /libvirt | |
parent | 754ea321b4438c663eea939098d28e0b256c6bda (diff) | |
download | terraform-provider-libvirt-c5ab19a8135306d23b6ad3ad11d21f6c9557584d.tar terraform-provider-libvirt-c5ab19a8135306d23b6ad3ad11d21f6c9557584d.tar.gz |
Rename cloud_init to cloudinit
I like it more ;)
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
Diffstat (limited to 'libvirt')
-rw-r--r-- | libvirt/resource_libvirt_domain.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libvirt/resource_libvirt_domain.go b/libvirt/resource_libvirt_domain.go index 0d2cef52..860426f5 100644 --- a/libvirt/resource_libvirt_domain.go +++ b/libvirt/resource_libvirt_domain.go @@ -45,7 +45,7 @@ func resourceLibvirtDomain() *schema.Resource { Default: true, ForceNew: false, }, - "cloud_init": &schema.Schema{ + "cloudinit": &schema.Schema{ Type: schema.TypeString, Required: false, Optional: true, @@ -110,7 +110,7 @@ func resourceLibvirtDomainCreate(d *schema.ResourceData, meta interface{}) error disks = append(disks, disk) } - if cloudinit, ok := d.GetOk("cloud_init"); ok { + if cloudinit, ok := d.GetOk("cloudinit"); ok { disk, err := newDiskForCloudInit(virConn, cloudinit.(string)) if err != nil { return err @@ -244,8 +244,8 @@ func resourceLibvirtDomainUpdate(d *schema.ResourceData, meta interface{}) error } } - if d.HasChange("cloud_init") { - cloudinit, err := newDiskForCloudInit(virConn, d.Get("cloud_init").(string)) + if d.HasChange("cloudinit") { + cloudinit, err := newDiskForCloudInit(virConn, d.Get("cloudinit").(string)) if err != nil { return err } |