diff options
Diffstat (limited to 'libvirt')
-rw-r--r-- | libvirt/resource_libvirt_domain.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libvirt/resource_libvirt_domain.go b/libvirt/resource_libvirt_domain.go index 16b618e2..b5d0fb6d 100644 --- a/libvirt/resource_libvirt_domain.go +++ b/libvirt/resource_libvirt_domain.go @@ -298,9 +298,7 @@ func resourceLibvirtDomainCreate(d *schema.ResourceData, meta interface{}) error var cmdlineArgs []string for i := 0; i < d.Get("cmdline.#").(int); i++ { - cmdlineKey := fmt.Sprintf("cmdline.%d", i) - cmdlineMap := d.Get(cmdlineKey).(map[string]interface{}) - for k, v := range cmdlineMap { + for k, v := range d.Get(fmt.Sprintf("cmdline.%d", i)).(map[string]interface{}) { cmdlineArgs = append(cmdlineArgs, fmt.Sprintf("%s=%v", k, v)) } } |