From 75c627876eee1948382f094ba1a7d2585c35e555 Mon Sep 17 00:00:00 2001 From: Owen Diehl Date: Wed, 22 Jul 2020 16:38:57 -0400 Subject: [PATCH] loads schemacfg with correct flagset Signed-off-by: Owen Diehl --- pkg/chunk/schema_config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/chunk/schema_config.go b/pkg/chunk/schema_config.go index 2ffc73714a..0c923bd7cf 100644 --- a/pkg/chunk/schema_config.go +++ b/pkg/chunk/schema_config.go @@ -76,9 +76,9 @@ type SchemaConfig struct { // RegisterFlags adds the flags required to config this to the given FlagSet. func (cfg *SchemaConfig) RegisterFlags(f *flag.FlagSet) { - flag.StringVar(&cfg.fileName, "schema-config-file", "", "The path to the schema config file.") + f.StringVar(&cfg.fileName, "schema-config-file", "", "The path to the schema config file.") // TODO(gouthamve): Add a metric for this. - flag.StringVar(&cfg.legacyFileName, "config-yaml", "", "DEPRECATED(use -schema-config-file) The path to the schema config file.") + f.StringVar(&cfg.legacyFileName, "config-yaml", "", "DEPRECATED(use -schema-config-file) The path to the schema config file.") } // loadFromFile loads the schema config from a yaml file