OpenStack: Change option name to `image_disk_format`

This commit is contained in:
Daisuke Takahashi 2018-09-13 18:53:54 +09:00
parent e375a87a56
commit b7bd3d4b34
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ type ImageConfig struct {
ImageMetadata map[string]string `mapstructure:"metadata"`
ImageVisibility imageservice.ImageVisibility `mapstructure:"image_visibility"`
ImageMembers []string `mapstructure:"image_members"`
DiskFormat string `mapstructure:"disk_format"`
ImageDiskFormat string `mapstructure:"image_disk_format"`
}
func (c *ImageConfig) Prepare(ctx *interpolate.Context) []error {

View File

@ -47,7 +47,7 @@ func (s *stepCreateImage) Run(_ context.Context, state multistep.StateBag) multi
}
volume := state.Get("volume_id").(string)
image, err := volumeactions.UploadImage(blockStorageClient, volume, volumeactions.UploadImageOpts{
DiskFormat: config.DiskFormat,
DiskFormat: config.ImageDiskFormat,
ImageName: config.ImageName,
}).Extract()
if err != nil {