From 644a0ee8c8de5d7e84c3d28279b5f4877ffea1ff Mon Sep 17 00:00:00 2001 From: James Shubin Date: Fri, 2 Sep 2016 02:25:41 -0400 Subject: [PATCH] puppet: golint fixes --- puppet.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/puppet.go b/puppet.go index 37f8b102..6e9a05cc 100644 --- a/puppet.go +++ b/puppet.go @@ -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")