aboutsummaryrefslogtreecommitdiff
path: root/libvirt
diff options
context:
space:
mode:
authorDuncan Mac-Vicar P <dmacvicar@suse.de>2017-11-23 15:40:17 +0100
committerDuncan Mac-Vicar P <dmacvicar@suse.de>2017-11-24 17:56:44 +0100
commit26cc59911233190debece753b8e9e9b91ded4bc8 (patch)
tree4827f800af6dd6e9c2209c16219741fa30a5a8af /libvirt
parenta05679a1e2d4ae29e496131a88ba1a129d7f331e (diff)
downloadterraform-provider-libvirt-26cc59911233190debece753b8e9e9b91ded4bc8.tar
terraform-provider-libvirt-26cc59911233190debece753b8e9e9b91ded4bc8.tar.gz
No need to make a 0 len slice
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{})