Change disk size config parameter name

This commit is contained in:
Calle Pettersson 2019-04-06 08:10:28 +02:00
parent 04b57b3e32
commit 65cd5bbd29
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ type diskConfig struct {
Type string `mapstructure:"type"`
StoragePool string `mapstructure:"storage_pool"`
StoragePoolType string `mapstructure:"storage_pool_type"`
Size string `mapstructure:"size"`
Size string `mapstructure:"disk_size"`
CacheMode string `mapstructure:"cache_mode"`
DiskFormat string `mapstructure:"format"`
}

View File

@ -52,7 +52,7 @@ func TestBasicExampleFromDocsIsValid(t *testing.T) {
"disks": [
{
"type": "scsi",
"size": "5G",
"disk_size": "5G",
"storage_pool": "local-lvm",
"storage_pool_type": "lvm"
}