fix machine image name to include prepended /

This commit is contained in:
Megan Marsh 2018-01-31 15:22:09 -08:00
parent 3180dc327c
commit 8f7937f492
1 changed files with 4 additions and 3 deletions

View File

@ -50,7 +50,8 @@ func (s *stepListImages) Run(_ context.Context, state multistep.StateBag) multis
entriesClient := client.ImageListEntries() entriesClient := client.ImageListEntries()
entriesInput := compute.CreateImageListEntryInput{ entriesInput := compute.CreateImageListEntryInput{
Name: config.DestImageList, Name: config.DestImageList,
MachineImages: []string{fmt.Sprintf("Compute-%s/%s/%s", config.IdentityDomain, config.Username, snap.MachineImage)}, MachineImages: []string{fmt.Sprintf("/Compute-%s/%s/%s",
config.IdentityDomain, config.Username, snap.MachineImage)},
Version: version, Version: version,
} }
entryInfo, err := entriesClient.CreateImageListEntry(&entriesInput) entryInfo, err := entriesClient.CreateImageListEntry(&entriesInput)