Skip to content

Commit

Permalink
return config object even if required attrs are not present
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Avetisyan <[email protected]>
  • Loading branch information
Henry Avetisyan committed Nov 12, 2021
1 parent 9f028ff commit 9897c97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/go/sia/aws/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func InitFileConfig(fileName, metaEndPoint string, useRegionalSTS bool, region s
return nil, nil, err
}
if config.Service == "" {
return nil, nil, fmt.Errorf("missing required Service field from the config file")
return &config, nil, fmt.Errorf("missing required Service field from the config file")
}
// if we have more than one account block defined (not recommended)
// then we need to determine our account id
Expand Down

0 comments on commit 9897c97

Please sign in to comment.