diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fd26f66..157fa96d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ * [CHANGE] Revert Alertmanager working directory changes in Docker image back to `/alertmanager` (#1435) * [CHANGE] Remove `api/v1/alerts/groups` GET endpoint (#1508) * [FEATURE] [amtool] Added `config routes` tools for vizualization and testing routes (#1511) +* [BUGFIX] [amtool] Fixed issue with loading path of a default configs (#1529) ## 0.15.2 / 2018-08-14 diff --git a/cli/config/config.go b/cli/config/config.go index 32517f12..15cd5e64 100644 --- a/cli/config/config.go +++ b/cli/config/config.go @@ -34,6 +34,9 @@ type Resolver struct { func NewResolver(files []string, legacyFlags map[string]string) (*Resolver, error) { flags := map[string]string{} for _, f := range files { + if _, err := os.Stat(f); err != nil { + continue + } b, err := ioutil.ReadFile(f) if err != nil { if os.IsNotExist(err) {