|
@@ -102,7 +102,6 @@ func collectFeatures() []byte {
|
|
return w.Bytes()
|
|
return w.Bytes()
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
func collectOSInfo() ([]byte, error) {
|
|
func collectOSInfo() ([]byte, error) {
|
|
log.Info("Collecting OS info")
|
|
log.Info("Collecting OS info")
|
|
info, err := osinfo.GetOSInfo()
|
|
info, err := osinfo.GetOSInfo()
|
|
@@ -194,7 +193,7 @@ func collectAPIStatus(login string, password string, endpoint string, prefix str
|
|
Scenarios: scenarios,
|
|
Scenarios: scenarios,
|
|
}
|
|
}
|
|
|
|
|
|
- _, err = Client.Auth.AuthenticateWatcher(context.Background(), t)
|
|
|
|
|
|
+ _, _, err = Client.Auth.AuthenticateWatcher(context.Background(), t)
|
|
if err != nil {
|
|
if err != nil {
|
|
return []byte(fmt.Sprintf("Could not authenticate to API: %s", err))
|
|
return []byte(fmt.Sprintf("Could not authenticate to API: %s", err))
|
|
} else {
|
|
} else {
|
|
@@ -277,7 +276,7 @@ cscli support dump -f /tmp/crowdsec-support.zip
|
|
var err error
|
|
var err error
|
|
var skipHub, skipDB, skipCAPI, skipLAPI, skipAgent bool
|
|
var skipHub, skipDB, skipCAPI, skipLAPI, skipAgent bool
|
|
infos := map[string][]byte{
|
|
infos := map[string][]byte{
|
|
- SUPPORT_VERSION_PATH: collectVersion(),
|
|
|
|
|
|
+ SUPPORT_VERSION_PATH: collectVersion(),
|
|
SUPPORT_FEATURES_PATH: collectFeatures(),
|
|
SUPPORT_FEATURES_PATH: collectFeatures(),
|
|
}
|
|
}
|
|
|
|
|