mirror of https://github.com/kubernetes/kops.git
Merge pull request #7801 from beautytiger/dev-191016-trimfix
fix string trim func in main
This commit is contained in:
commit
703bdd8f08
|
|
@ -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" {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue