Add support for freeform tagging of images

This commit is contained in:
Harvey Lowndes 2018-06-04 13:14:59 +01:00 committed by Megan Marsh
parent be6f4ae8b7
commit cc7d4e4a95
2 changed files with 4 additions and 0 deletions

View File

@ -62,6 +62,9 @@ type Config struct {
// Networking
SubnetID string `mapstructure:"subnet_ocid"`
// Tagging
Tags map[string]string `mapstructure:"tags"`
ctx interpolate.Context
}

View File

@ -80,6 +80,7 @@ func (d *driverOCI) CreateImage(ctx context.Context, id string) (core.Image, err
CompartmentId: &d.cfg.CompartmentID,
InstanceId: &id,
DisplayName: &d.cfg.ImageName,
FreeformTags: d.cfg.Tags,
}})
if err != nil {