Pass additional_ram_bytes as a string
This commit is contained in:
parent
7ffdd7546d
commit
7a6ba7675c
@ -70,7 +70,7 @@ class ShellScriptVirtualization(VirtualizationInterface):
|
|||||||
""")
|
""")
|
||||||
|
|
||||||
def capacity_avaliable(self, additional_ram_bytes):
|
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)
|
completedProcess = run(my_args, capture_output=True)
|
||||||
|
|
||||||
if completedProcess.returncode != 0:
|
if completedProcess.returncode != 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user