Merge pull request #7801 from beautytiger/dev-191016-trimfix

fix string trim func in main
This commit is contained in:
Kubernetes Prow Robot 2019-10-19 15:27:36 -07:00 committed by GitHub
commit 703bdd8f08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ func run() error {
Cores: stringToInt(attributes["vcpu"]), Cores: stringToInt(attributes["vcpu"]),
} }
memory := strings.TrimRight(attributes["memory"], " GiB") memory := strings.TrimSuffix(attributes["memory"], " GiB")
machine.MemoryGB = stringToFloat32(memory) machine.MemoryGB = stringToFloat32(memory)
if attributes["storage"] != "EBS only" { if attributes["storage"] != "EBS only" {