Skip to content

Commit

Permalink
Removed error logging from config loader
Browse files Browse the repository at this point in the history
  • Loading branch information
vr4manta committed Aug 28, 2024
1 parent 05745cd commit 889e821
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/common/config/config_yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ func (ccy *CommonConfigYAML) validateConfig() error {
// ReadRawConfigYAML parses vSphere cloud config file and stores it into ConfigYAML
func ReadRawConfigYAML(byConfig []byte) (*CommonConfigYAML, error) {
if len(byConfig) == 0 {
klog.Errorf("Invalid YAML file")
return nil, fmt.Errorf("Invalid YAML file")
}

Expand All @@ -205,13 +204,11 @@ func ReadRawConfigYAML(byConfig []byte) (*CommonConfigYAML, error) {
}

if err := yaml.Unmarshal(byConfig, &cfg); err != nil {
klog.Errorf("Unmarshal failed: %s", err)
return nil, err
}

err := cfg.validateConfig()
if err != nil {
klog.Errorf("validateConfig failed: %s", err)
return nil, err
}

Expand Down

0 comments on commit 889e821

Please sign in to comment.