target/oci: OCITargetOptions.FileName -> OCITargetOptions.Filename
The `Filename` is defined in each and every target options. Modify its name in the OCI target to be consistent with all other targets.
This commit is contained in:
parent
40abb32dec
commit
7bfd3aec71
3 changed files with 3 additions and 3 deletions
|
|
@ -716,7 +716,7 @@ func (impl *OSBuildJobImpl) Run(job worker.Job) error {
|
|||
}
|
||||
logWithId.Info("[OCI] 🔑 Logged in OCI")
|
||||
logWithId.Info("[OCI] ⬆ Uploading the image")
|
||||
file, err := os.Open(path.Join(outputDirectory, exportPath, options.FileName))
|
||||
file, err := os.Open(path.Join(outputDirectory, exportPath, options.Filename))
|
||||
if err != nil {
|
||||
targetResult.TargetError = clienterrors.WorkerClientError(clienterrors.ErrorInvalidConfig, err.Error())
|
||||
break
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ type OCITargetOptions struct {
|
|||
User string `json:"user"`
|
||||
Tenancy string `json:"tenancy"`
|
||||
Region string `json:"region"`
|
||||
FileName string `json:"filename"`
|
||||
Filename string `json:"filename"`
|
||||
Fingerprint string `json:"fingerprint"`
|
||||
PrivateKey string `json:"private_key"`
|
||||
Bucket string `json:"bucket"`
|
||||
|
|
|
|||
|
|
@ -326,7 +326,7 @@ func uploadRequestToTarget(u uploadRequest, imageType distro.ImageType) *target.
|
|||
User: options.User,
|
||||
Tenancy: options.Tenancy,
|
||||
Region: options.Region,
|
||||
FileName: imageType.Filename(),
|
||||
Filename: imageType.Filename(),
|
||||
PrivateKey: options.PrivateKey,
|
||||
Fingerprint: options.Fingerprint,
|
||||
Bucket: options.Bucket,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue