Skip to content

Commit

Permalink
not failing for non-existing configuration on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
yairsimantov20 committed Dec 14, 2023
1 parent 5be6bdb commit a6ced85
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ func main() {
klog.Fatalf("Error building Port client: %s", err.Error())
}

exporterConfig, err := config.GetConfigFile(config.ApplicationConfig.ConfigFilePath, config.ApplicationConfig.ResyncInterval, config.ApplicationConfig.StateKey, config.ApplicationConfig.EventListenerType)
if err != nil {
klog.Fatalf("Error building Port K8s Exporter config: %s", err.Error())
}
exporterConfig, _ := config.GetConfigFile(config.ApplicationConfig.ConfigFilePath, config.ApplicationConfig.ResyncInterval, config.ApplicationConfig.StateKey, config.ApplicationConfig.EventListenerType)

_, err = integration.GetIntegrationConfig(portClient, config.ApplicationConfig.StateKey)
if err != nil {
Expand Down

0 comments on commit a6ced85

Please sign in to comment.