Skip to content

Commit 0249a54

Browse files
committed
cmd: rename hss references to fleetdb
1 parent 190226d commit 0249a54

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cmd/inband.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ var cmdInband = &cobra.Command{
3434
storeKind = string(model.StoreKindMock)
3535
}
3636

37-
if storeKind == string(model.StoreKindServerservice) && assetID == "" {
38-
log.Fatal("--asset-id flag required for inband command with serverservice store")
37+
if storeKind == string(model.StoreKindFleetDB) && assetID == "" {
38+
log.Fatal("--asset-id flag required for inband command with fleetdb store")
3939
}
4040

4141
// execution timeout
@@ -109,7 +109,7 @@ func collectInband(ctx context.Context, cfg *app.Configuration, logger *logrus.L
109109

110110
// install command flags
111111
func init() {
112-
cmdInband.PersistentFlags().StringVarP(&assetID, "asset-id", "", "", "The asset identifier - required when store is set to serverservice")
112+
cmdInband.PersistentFlags().StringVarP(&assetID, "asset-id", "", "", "The asset identifier - required when store is set to fleetdb")
113113
cmdInband.PersistentFlags().DurationVar(&inbandTimeout, "timeout", 1*time.Minute, "timeout inventory collection if the duration exceeds the given parameter, accepted values are int time.Duration string format - 12h, 5d...")
114114

115115
rootCmd.AddCommand(cmdInband)

cmd/root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var (
2727
logLevel string
2828
cfgFile string
2929

30-
// storeKind is inventory store name - serverservice
30+
// storeKind is inventory store name - fleetdb
3131
storeKind string
3232

3333
// outputStdout when set causes alloy to write the collected data to stdout
@@ -54,7 +54,7 @@ func Execute() {
5454
func init() {
5555
// Read in env vars with appName as prefix
5656
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "configuration file")
57-
rootCmd.PersistentFlags().StringVar(&storeKind, "store", "mock", "The inventory store kind (serverservice, csv)")
57+
rootCmd.PersistentFlags().StringVar(&storeKind, "store", "mock", "The inventory store kind (fleetdb, csv)")
5858
rootCmd.PersistentFlags().StringVar(&logLevel, "log-level", "info", "set logging level - debug, trace")
5959
rootCmd.PersistentFlags().BoolVarP(&outputStdout, "output-stdout", "", false, "Output collected data to STDOUT instead of the store")
6060
rootCmd.PersistentFlags().BoolVarP(&enableProfiling, "enable-pprof", "", false, "Enable profiling endpoint at: "+model.ProfilingEndpoint)

0 commit comments

Comments
 (0)