Skip to content

Commit

Permalink
Merge pull request #44 from threefoldtech/main_fixPublicConfig
Browse files Browse the repository at this point in the history
fix public config
  • Loading branch information
Omarabdul3ziz authored Jan 30, 2025
2 parents 57a61cb + e864d52 commit e87c144
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/netlight/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,13 @@ func (n *networker) SetPublicConfig(cfg pkg.PublicConfig) error {

func (n *networker) LoadPublicConfig() (pkg.PublicConfig, error) {
cfg, err := public.LoadPublicConfig()
return *cfg, err
if err != nil {
return pkg.PublicConfig{}, fmt.Errorf("failed to load public config: %w", err)
}
if cfg == nil {
return pkg.PublicConfig{}, fmt.Errorf("public config not found")
}
return *cfg, nil
}

func CreateNDMZBridge() (*netlink.Bridge, error) {
Expand Down

0 comments on commit e87c144

Please sign in to comment.