diff --git a/src/spaceone/inventory/manager/cloud_functions/function_gen2_manager.py b/src/spaceone/inventory/manager/cloud_functions/function_gen2_manager.py index 056e63f..05428c0 100644 --- a/src/spaceone/inventory/manager/cloud_functions/function_gen2_manager.py +++ b/src/spaceone/inventory/manager/cloud_functions/function_gen2_manager.py @@ -280,13 +280,13 @@ def _make_timeout(timeout): @staticmethod def _make_memory_allocated(memory): try: - number, unit = memory.split("Mi") + number, *unit = memory.split("Mi") return f"{number} MiB" except ValueError: - number, unit = memory.split("M") + number, *unit = memory.split("M") return f"{number} MiB" except Exception: - number, unit = memory.split("Gi") + number, *unit = memory.split("Gi") return f"{number} GiB" @staticmethod