From 7dee103b6e7eaacf5eda218fad00cadfaff73dff Mon Sep 17 00:00:00 2001 From: mmetc <92726601+mmetc@users.noreply.github.com> Date: Mon, 6 Dec 2021 17:29:23 +0100 Subject: [PATCH] typos of various nature (#1072) --- cmd/crowdsec-cli/machines.go | 4 ++-- cmd/crowdsec/api.go | 2 +- debian/postinst | 2 +- debian/preinst | 2 +- pkg/parser/runtime.go | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/crowdsec-cli/machines.go b/cmd/crowdsec-cli/machines.go index 19a65fcfc..ce1ee2939 100644 --- a/cmd/crowdsec-cli/machines.go +++ b/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) diff --git a/cmd/crowdsec/api.go b/cmd/crowdsec/api.go index f053470fa..41cb5e2b8 100644 --- a/cmd/crowdsec/api.go +++ b/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") diff --git a/debian/postinst b/debian/postinst index 05b1a0c0a..ffb9b2de3 100644 --- a/debian/postinst +++ b/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" diff --git a/debian/preinst b/debian/preinst index e8520629b..e2485ce53 100644 --- a/debian/preinst +++ b/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" diff --git a/pkg/parser/runtime.go b/pkg/parser/runtime.go index 7b5278f37..e0018a845 100644 --- a/pkg/parser/runtime.go +++ b/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"}, )