Skip to content

Commit

Permalink
Fix using []bytes instead of io.Reader
Browse files Browse the repository at this point in the history
  • Loading branch information
jthomperoo committed Dec 9, 2019
1 parent 097ec3a commit dc11647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/predictive-horizontal-pod-autoscaler/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func getEvaluation(stdin io.Reader, predictiveConfig *config.Config) {

// Read in resource metrics provided
var resourceMetrics cpametric.ResourceMetrics
err = yaml.NewYAMLOrJSONDecoder(bytes.NewReader(stdin), 10).Decode(&resourceMetrics)
err = yaml.NewYAMLOrJSONDecoder(stdin, 10).Decode(&resourceMetrics)
if err != nil {
log.Fatal(err)
os.Exit(1)
Expand Down

0 comments on commit dc11647

Please sign in to comment.