Merge pull request #15286 from wanyaoqi/hotfix/deploy-telegraf-error-info

fix(host-deployer): add deploy telegraf error info
This commit is contained in:
Zexi Li
2022-11-04 12:16:06 +08:00
committed by GitHub
+1 -1
View File
@@ -658,7 +658,7 @@ func (d *sLinuxRootFs) DeployTelegraf(config string) (bool, error) {
fmt.Sprintf("(crontab -l 2>/dev/null; echo '%s') |crontab -", cronJob),
).Output()
if err != nil {
return false, errors.Wrapf(err, "add crontab")
return false, errors.Wrapf(err, "add crontab %s", output)
}
return true, nil
}