Add instance_display_name parameter for Cloudstack builder

This change introduce instance_display_name optional parameter
for Cloudstack builder to set custom VM display name.
By default it is set to "Created by Packer".
This commit is contained in:
Michael Bochkaryov
2019-10-26 21:13:45 -07:00
parent 0cb098b713
commit da7e72246c
4 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ func (s *stepCreateInstance) Run(ctx context.Context, state multistep.StateBag)
// Configure the instance.
p.SetName(config.InstanceName)
p.SetDisplayname("Created by Packer")
p.SetDisplayname(config.InstanceDisplayName)
if len(config.Comm.SSHKeyPairName) != 0 {
ui.Message(fmt.Sprintf("Using keypair: %s", config.Comm.SSHKeyPairName))