Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #182 from signalfx/master
Browse files Browse the repository at this point in the history
Merge bugfix
  • Loading branch information
keitwb authored Oct 20, 2017
2 parents ddddb28 + c25d5d0 commit 94fb1be
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions observers/kubelet/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,10 @@ func init() {

// Configure the kubernetes observer/client
func (k *Observer) Configure(config *Config) bool {
kubeletAPI := config.KubeletAPI
if kubeletAPI.URL == "" {
kubeletAPI.URL = fmt.Sprintf("https://%s:10250", config.Hostname)
if config.KubeletAPI.URL == "" {
config.KubeletAPI.URL = fmt.Sprintf("https://%s:10250", config.Hostname)
}
client := kubelet.NewClient(&kubeletAPI)
client := kubelet.NewClient(&config.KubeletAPI)
if client == nil {
return false
}
Expand Down

0 comments on commit 94fb1be

Please sign in to comment.