Merge pull request #57 from bkmeneguello/defaults

Some sane defaults
This commit is contained in:
Grant Gongaware 2019-05-23 10:58:56 -07:00 committed by GitHub
commit 9fe5f2c393
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,15 +75,18 @@ func resourceVmQemu() *schema.Resource {
}, },
"memory": { "memory": {
Type: schema.TypeInt, Type: schema.TypeInt,
Required: true, Optional: true,
Default: 512,
}, },
"cores": { "cores": {
Type: schema.TypeInt, Type: schema.TypeInt,
Required: true, Optional: true,
Default: 1,
}, },
"sockets": { "sockets": {
Type: schema.TypeInt, Type: schema.TypeInt,
Required: true, Optional: true,
Default: 1,
}, },
"network": &schema.Schema{ "network": &schema.Schema{
Type: schema.TypeSet, Type: schema.TypeSet,