Merge pull request #43 from cardinalit/fix

added config source, edited .gitignore
This commit is contained in:
Grant Gongaware 2019-04-12 08:33:30 -07:00 committed by GitHub
commit 551f5b16ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

2
.gitignore vendored
View File

@ -1,2 +1,4 @@
.idea
*~*
*.bak

View File

@ -47,6 +47,11 @@ func resourceVmQemu() *schema.Resource {
Optional: true,
Default: true,
},
"agent": {
Type: schema.TypeString,
Optional: true,
Default: "1",
},
"iso": {
Type: schema.TypeString,
Optional: true,
@ -348,6 +353,7 @@ func resourceVmQemuCreate(d *schema.ResourceData, meta interface{}) error {
Name: vmName,
Description: d.Get("desc").(string),
Onboot: d.Get("onboot").(bool),
Agent: d.Get("agent").(string),
Memory: d.Get("memory").(int),
QemuCores: d.Get("cores").(int),
QemuSockets: d.Get("sockets").(int),