fix amtool: Fixed config path check in amtool (#1538)
Signed-off-by: Martin Chodur <m.chodur@seznam.cz>
This commit is contained in:
parent
b1a8fdd169
commit
20bdaaf949
|
@ -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
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue