We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2fc4d6 commit 1a636f9Copy full SHA for 1a636f9
driver/upcloud.go
@@ -110,7 +110,7 @@ func (d *Driver) GetCreateFlags() []mcnflag.Flag {
110
mcnflag.IntFlag{
111
EnvVar: "UPCLOUD_MEMORY_AMOUNT",
112
Name: "upcloud-memory-amount",
113
- Usage: "specify the amount of RAM to be assigned",
+ Usage: "specify the amount (GB) of RAM to be assigned",
114
},
115
}
116
@@ -260,7 +260,8 @@ func (d *Driver) Create() error {
260
// and use the passed values
261
if d.CoreNumber != 0 && d.MemoryAmount != 0 {
262
createRequest.Plan = ""
263
- createRequest.MemoryAmount = d.MemoryAmount
+ // Convert the MemoryAmount GB to MBs
264
+ createRequest.MemoryAmount = d.MemoryAmount * 1024
265
createRequest.CoreNumber = d.CoreNumber
266
267
0 commit comments