puppet: golint fixes

This commit is contained in:
James Shubin
2016-09-02 02:25:41 -04:00
parent e9d5dc8fee
commit 644a0ee8c8

View File

@@ -27,6 +27,7 @@ import (
)
const (
// PuppetYAMLBufferSize is the maximum buffer size for the yaml input data
PuppetYAMLBufferSize = 65535
)
@@ -80,6 +81,8 @@ func runPuppetCommand(cmd *exec.Cmd) ([]byte, error) {
return result, nil
}
// ParseConfigFromPuppet takes a special puppet param string and config and
// returns the graph configuration structure.
func ParseConfigFromPuppet(puppetParam, puppetConf string) *GraphConfig {
var puppetConfArg string
if puppetConf != "" {
@@ -108,6 +111,7 @@ func ParseConfigFromPuppet(puppetParam, puppetConf string) *GraphConfig {
return &config
}
// PuppetInterval returns the graph refresh interval from the puppet configuration.
func PuppetInterval(puppetConf string) int {
if DEBUG {
log.Printf("Puppet: determining graph refresh interval")