Fix scan defaults not set correctly

This commit is contained in:
WithoutPants 2023-03-23 11:36:50 +11:00 committed by GitHub
parent b967b63288
commit 0841d6877a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -555,7 +555,9 @@ func (r *mutationResolver) ConfigureDefaults(ctx context.Context, input ConfigDe
}
if input.Scan != nil {
c.Set(config.DefaultScanSettings, input.Scan)
// if input.Scan is used then ScanMetadataOptions is included in the config file
// this causes the values to not be read correctly
c.Set(config.DefaultScanSettings, input.Scan.ScanMetadataOptions)
}
if input.AutoTag != nil {