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

View file

@ -555,7 +555,9 @@ func (r *mutationResolver) ConfigureDefaults(ctx context.Context, input ConfigDe
} }
if input.Scan != nil { 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 { if input.AutoTag != nil {