Merge pull request #6202 from rickard-von-essen/fix-6184

builder/parallels-pvm: Add missing compaction of disks
This commit is contained in:
M. Marsh 2018-04-26 15:44:12 -07:00 committed by GitHub
commit 879319a76c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -105,6 +105,9 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
Commands: b.config.PrlctlPost,
Ctx: b.config.ctx,
},
&parallelscommon.StepCompactDisk{
Skip: b.config.SkipCompaction,
},
}
// Run the steps.

View File

@ -26,6 +26,7 @@ type Config struct {
parallelscommon.ToolsConfig `mapstructure:",squash"`
SourcePath string `mapstructure:"source_path"`
SkipCompaction bool `mapstructure:"skip_compaction"`
VMName string `mapstructure:"vm_name"`
ReassignMAC bool `mapstructure:"reassign_mac"`