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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user