remove new_ram value conversion from GB to MB

This commit is contained in:
2024-03-22 17:01:50 +03:00
parent f2e9b550bb
commit 1c6b46c535

View File

@@ -1102,10 +1102,6 @@ class DecortController(object):
elif not new_ram:
new_ram = comp_dict['ram']
# stupid hack?
if new_ram > 1 and new_ram < 512:
new_ram = new_ram * 1024
if comp_dict['cpus'] == new_cpu and comp_dict['ram'] == new_ram:
# no need to call API in this case, as requested size is not different from the current one
self.result['failed'] = False