cli: remove duplicate import

Signed-off-by: Paul Gier <pgier@redhat.com>
This commit is contained in:
Paul Gier 2019-04-02 09:58:01 -05:00
parent e31cfbf365
commit fab3d1e89f
1 changed files with 2 additions and 3 deletions

View File

@ -24,7 +24,6 @@ import (
"github.com/prometheus/alertmanager/api/v2/client/general"
"github.com/prometheus/alertmanager/api/v2/models"
"github.com/prometheus/alertmanager/config"
amconfig "github.com/prometheus/alertmanager/config"
kingpin "gopkg.in/alecthomas/kingpin.v2"
"github.com/prometheus/alertmanager/pkg/parse"
@ -95,10 +94,10 @@ func checkRoutingConfigInputFlags(alertmanagerURL *url.URL, configFile string) {
}
}
func loadAlertmanagerConfig(ctx context.Context, alertmanagerURL *url.URL, configFile string) (*amconfig.Config, error) {
func loadAlertmanagerConfig(ctx context.Context, alertmanagerURL *url.URL, configFile string) (*config.Config, error) {
checkRoutingConfigInputFlags(alertmanagerURL, configFile)
if configFile != "" {
cfg, _, err := amconfig.LoadFile(configFile)
cfg, _, err := config.LoadFile(configFile)
if err != nil {
return nil, err
}