mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-09-01 22:52:59 +02:00
Load new default metrics config from working directory
This commit is contained in:
@@ -16,7 +16,7 @@ type DefaultMetricsConfig struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func LoadDefaultMetricsConfig() (*DefaultMetricsConfig, error) {
|
func LoadDefaultMetricsConfig() (*DefaultMetricsConfig, error) {
|
||||||
filePath := "configs/default_metrics.json"
|
filePath := "default_metrics.json"
|
||||||
if _, err := os.Stat(filePath); os.IsNotExist(err) {
|
if _, err := os.Stat(filePath); os.IsNotExist(err) {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user