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

@ -49,9 +49,10 @@ func (s *stepListImages) Run(_ context.Context, state multistep.StateBag) multis
version := len(imList.Entries) + 1 version := len(imList.Entries) + 1
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",
Version: version, config.IdentityDomain, config.Username, snap.MachineImage)},
Version: version,
} }
entryInfo, err := entriesClient.CreateImageListEntry(&entriesInput) entryInfo, err := entriesClient.CreateImageListEntry(&entriesInput)
if err != nil { if err != nil {