Skip to content

Commit

Permalink
fix metricreplicator webdav dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Bronin committed Aug 4, 2020
1 parent b543631 commit 139c461
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/middleware/config.go
Expand Up @@ -44,7 +44,7 @@ type Config struct {
Prometheus PrometheusConfig `mapstructure:"prometheus" validate:"required"`
Groups []GroupConfig `mapstructure:"groups" validate:"min=1,dive,required"`
WebDav WebDavConfig `mapstructure:"webdav" validate:"required"`
Git struct {
Git struct {
Branch string
Hash string
}
Expand All @@ -53,6 +53,7 @@ type Config struct {
type pathGetter struct {
path string
}

func (g *pathGetter) GetConfigPath() string {
return g.path
}
Expand Down Expand Up @@ -88,7 +89,7 @@ func (cfg Config) LoaderConfig() replicator.LoaderConfig {
URL: cfg.WebDav.Host,
User: cfg.WebDav.Username,
Password: cfg.WebDav.Password,
RemoteDirName: cfg.Git.Hash,
RemoteDirName: cfg.WebDav.Directory,
Timeout: cfg.WebDav.Timeout,
}
}
Expand Down

0 comments on commit 139c461

Please sign in to comment.