mirror of
https://github.com/dokku/dokku.git
synced 2025-12-28 16:06:40 +01:00
fix: also support KB, MB, GB, and B as valid suffixes
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
func addMemorySuffixForDocker(key string, value string) string {
|
||||
if key == "memory" {
|
||||
hasSuffix := false
|
||||
suffixes := []string{"b", "k", "m", "g"}
|
||||
suffixes := []string{"b", "k", "m", "g", "KB", "MB", "GB"}
|
||||
for _, suffix := range suffixes {
|
||||
if strings.HasSuffix(value, suffix) {
|
||||
hasSuffix = true
|
||||
|
||||
Reference in New Issue
Block a user