fix machine image name to include prepended /
This commit is contained in:
parent
3180dc327c
commit
8f7937f492
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue