mirror of
				https://github.com/ClusterCockpit/cc-metric-collector.git
				synced 2025-10-31 09:05:05 +01:00 
			
		
		
		
	Use customcmd commands if they did not error.
This commit is contained in:
		| @@ -48,7 +48,7 @@ func (m *CustomCmdCollector) Init(config json.RawMessage) error { | ||||
| 		command := exec.Command(cmdfields[0], strings.Join(cmdfields[1:], " ")) | ||||
| 		command.Wait() | ||||
| 		_, err = command.Output() | ||||
| 		if err != nil { | ||||
| 		if err == nil { | ||||
| 			m.commands = append(m.commands, c) | ||||
| 		} | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user