From 0841d6877a61a19ed6d42852416e4111e5c6d26c Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Thu, 23 Mar 2023 11:36:50 +1100 Subject: [PATCH] Fix scan defaults not set correctly --- internal/api/resolver_mutation_configure.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/api/resolver_mutation_configure.go b/internal/api/resolver_mutation_configure.go index 5342182f9..fc46bc323 100644 --- a/internal/api/resolver_mutation_configure.go +++ b/internal/api/resolver_mutation_configure.go @@ -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 {