test(systemtests): fix export v2 (#22799)

This commit is contained in:
Julien Robert
2024-12-09 14:53:49 +00:00
committed by GitHub
parent ecd53f8497
commit 34f407d636
10 changed files with 25 additions and 13 deletions
+1 -3
View File
@@ -78,9 +78,7 @@ func (s *Server[T]) Config() any {
// An empty home directory *is* permitted at this stage, but attempting to build
// the store with an empty home directory will fail.
func UnmarshalConfig(cfg map[string]any) (*root.Config, error) {
config := &root.Config{
Options: root.DefaultStoreOptions(),
}
config := root.DefaultConfig()
if err := serverv2.UnmarshalSubConfig(cfg, ServerName, config); err != nil {
return nil, fmt.Errorf("failed to unmarshal store config: %w", err)
}