From 5a080fe1c5e308a68c27d9194d6f2f6be520edfb Mon Sep 17 00:00:00 2001 From: forest Date: Thu, 21 May 2020 22:45:00 -0500 Subject: [PATCH] correctly decode output from list-ids.sh --- capsulflask/virt_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capsulflask/virt_model.py b/capsulflask/virt_model.py index 51db58a..2bf8d9a 100644 --- a/capsulflask/virt_model.py +++ b/capsulflask/virt_model.py @@ -106,7 +106,7 @@ class ShellScriptVirtualization(VirtualizationInterface): def list_ids(self) -> list: completedProcess = run([join(current_app.root_path, 'shell_scripts/list-ids.sh')], capture_output=True) self.validate_completed_process(completedProcess) - return completedProcess.stdout.splitlines() + return list(map(lambda x: x.decode("utf-8"), completedProcess.stdout.splitlines() )) def create(self, email: str, id: str, template_image_file_name: str, vcpus: int, memory_mb: int, ssh_public_keys: list): validate_capsul_id(id)