aboutsummaryrefslogtreecommitdiff
path: root/libvirt
diff options
context:
space:
mode:
Diffstat (limited to 'libvirt')
-rw-r--r--libvirt/resource_libvirt_domain.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvirt/resource_libvirt_domain.go b/libvirt/resource_libvirt_domain.go
index 4dae7c29..b19f23f0 100644
--- a/libvirt/resource_libvirt_domain.go
+++ b/libvirt/resource_libvirt_domain.go
@@ -297,7 +297,7 @@ func resourceLibvirtDomainCreate(d *schema.ResourceData, meta interface{}) error
}
cmdlinesCount := d.Get("cmdline.#").(int)
- cmdlineArgs := make([]string, 0)
+ var cmdlineArgs []string
for i := 0; i < cmdlinesCount; i++ {
cmdlineKey := fmt.Sprintf("cmdline.%d", i)
cmdlineMap := d.Get(cmdlineKey).(map[string]interface{})