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