From 1c6b46c535164a611b862895fc85764aa2ac6f88 Mon Sep 17 00:00:00 2001 From: Dmitriy Smirnov Date: Fri, 22 Mar 2024 17:01:50 +0300 Subject: [PATCH] remove new_ram value conversion from GB to MB --- module_utils/decort_utils.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/module_utils/decort_utils.py b/module_utils/decort_utils.py index 70c2765..b11c299 100644 --- a/module_utils/decort_utils.py +++ b/module_utils/decort_utils.py @@ -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