Browse Source

typos of various nature (#1072)

mmetc 3 năm trước cách đây
mục cha
commit
7dee103b6e
5 tập tin đã thay đổi với 7 bổ sung7 xóa
  1. 2 2
      cmd/crowdsec-cli/machines.go
  2. 1 1
      cmd/crowdsec/api.go
  3. 1 1
      debian/postinst
  4. 1 1
      debian/preinst
  5. 2 2
      pkg/parser/runtime.go

+ 2 - 2
cmd/crowdsec-cli/machines.go

@@ -181,7 +181,7 @@ cscli machines add MyTestMachine --password MyPassword
 			var dumpFile string
 			var err error
 
-			// create machineID if doesn't specified by user
+			// create machineID if not specified by user
 			if len(args) == 0 {
 				if !autoAdd {
 					err = cmd.Help()
@@ -312,7 +312,7 @@ cscli machines add MyTestMachine --password MyPassword
 			if err := dbClient.ValidateMachine(machineID); err != nil {
 				log.Fatalf("unable to validate machine '%s': %s", machineID, err)
 			}
-			log.Infof("machine '%s' validated successfuly", machineID)
+			log.Infof("machine '%s' validated successfully", machineID)
 		},
 	}
 	cmdMachines.AddCommand(cmdMachinesValidate)

+ 1 - 1
cmd/crowdsec/api.go

@@ -19,7 +19,7 @@ func initAPIServer(cConfig *csconfig.Config) (*apiserver.APIServer, error) {
 	if hasPlugins(cConfig.API.Server.Profiles) {
 		log.Info("initiating plugin broker")
 		if cConfig.PluginConfig == nil {
-			return nil, fmt.Errorf("plugins are enabled, but no plugin_config section is missing in the configuration")
+			return nil, fmt.Errorf("plugins are enabled, but the plugin_config section is missing in the configuration")
 		}
 		if cConfig.ConfigPaths.NotificationDir == "" {
 			return nil, fmt.Errorf("plugins are enabled, but config_paths.notification_dir is not defined")

+ 1 - 1
debian/postinst

@@ -98,4 +98,4 @@ if [ "$1" = configure ]; then
 fi
 
 
-echo "You always can run the configuration again interactively using '/usr/share/crowdsec/wizard.sh -c"
+echo "You can always run the configuration again interactively by using '/usr/share/crowdsec/wizard.sh -c"

+ 1 - 1
debian/preinst

@@ -40,4 +40,4 @@ if [ "$1" = upgrade ]; then
    fi   
 fi
 
-echo "You always can run the configuration again interactively using '/usr/share/crowdsec/wizard.sh -c"
+echo "You can always run the configuration again interactively by using '/usr/share/crowdsec/wizard.sh -c"

+ 2 - 2
pkg/parser/runtime.go

@@ -198,7 +198,7 @@ var NodesHits = prometheus.NewCounterVec(
 var NodesHitsOk = prometheus.NewCounterVec(
 	prometheus.CounterOpts{
 		Name: "cs_node_hits_ok_total",
-		Help: "Total events successfuly exited node.",
+		Help: "Total events successfully exited node.",
 	},
 	[]string{"source", "type", "name"},
 )
@@ -206,7 +206,7 @@ var NodesHitsOk = prometheus.NewCounterVec(
 var NodesHitsKo = prometheus.NewCounterVec(
 	prometheus.CounterOpts{
 		Name: "cs_node_hits_ko_total",
-		Help: "Total events unsuccessfuly exited node.",
+		Help: "Total events unsuccessfully exited node.",
 	},
 	[]string{"source", "type", "name"},
 )