Skip to content

Commit c2a7f6a

Browse files
Addressed PR comments
1 parent d9a8998 commit c2a7f6a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

linode_api4/objects/linode.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
PASSWORD_CHARS = string.ascii_letters + string.digits + string.punctuation
4545
MIN_DEVICE_LIMIT = 8
46-
MEMORY_DIVISOR = 1024
46+
MB_PER_GB = 1024
4747
MAX_DEVICE_LIMIT = 64
4848

4949

@@ -1265,7 +1265,7 @@ def config_create(
12651265
device_limit = int(
12661266
max(
12671267
MIN_DEVICE_LIMIT,
1268-
min(self.specs.memory // MEMORY_DIVISOR, MAX_DEVICE_LIMIT),
1268+
min(self.specs.memory // MB_PER_GB, MAX_DEVICE_LIMIT),
12691269
)
12701270
)
12711271

0 commit comments

Comments
 (0)