Pass additional_ram_bytes as a string

This commit is contained in:
j3s 2020-05-16 15:49:49 -05:00
parent 7ffdd7546d
commit 7a6ba7675c

View File

@ -70,7 +70,7 @@ class ShellScriptVirtualization(VirtualizationInterface):
""")
def capacity_avaliable(self, additional_ram_bytes):
my_args=[join(current_app.root_path, 'shell_scripts/capacity-avaliable.sh'), additional_ram_bytes]
my_args=[join(current_app.root_path, 'shell_scripts/capacity-avaliable.sh'), str(additional_ram_bytes)]
completedProcess = run(my_args, capture_output=True)
if completedProcess.returncode != 0: