소스 검색

Merge pull request #2694 from Sean-Holcomb/v2.2-Patch/remove-spam-log-from-unconfigured-cloud-cost

prevent spam log in unconfigured cloudcost
Sean Holcomb 2 년 전
부모
커밋
def3cf6dfc
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      pkg/cloud/config/controller.go

+ 4 - 0
pkg/cloud/config/controller.go

@@ -68,6 +68,10 @@ func (c *Controller) pullWatchers() {
 	if err != nil {
 	if err != nil {
 		log.Warnf("Controller: pullWatchers: %s. Proceeding to create the file", err.Error())
 		log.Warnf("Controller: pullWatchers: %s. Proceeding to create the file", err.Error())
 		statuses = Statuses{}
 		statuses = Statuses{}
+		err = c.save(statuses)
+		if err != nil {
+			log.Errorf("Controller: pullWatchers: failed to save statuses %s", err.Error())
+		}
 	}
 	}
 	for source, watcher := range c.watchers {
 	for source, watcher := range c.watchers {
 		watcherConfsByKey := map[string]cloud.KeyedConfig{}
 		watcherConfsByKey := map[string]cloud.KeyedConfig{}