typos of various nature (#1072)

This commit is contained in:
mmetc 2021-12-06 17:29:23 +01:00 committed by GitHub
parent 2a1a96c1a7
commit 7dee103b6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View file

@ -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)

View file

@ -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")

2
debian/postinst vendored
View file

@ -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"

2
debian/preinst vendored
View file

@ -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"

View file

@ -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"},
)