From 8d5e3d007d503597d87bbf102b4388c065d21df0 Mon Sep 17 00:00:00 2001 From: forest Date: Wed, 17 Feb 2021 21:15:23 -0600 Subject: [PATCH] add warnings when get.sh fails --- capsulflask/spoke_model.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/capsulflask/spoke_model.py b/capsulflask/spoke_model.py index 069e390..ae69119 100644 --- a/capsulflask/spoke_model.py +++ b/capsulflask/spoke_model.py @@ -87,12 +87,14 @@ class ShellScriptSpoke(VirtualizationInterface): self.validate_completed_process(completedProcess) lines = completedProcess.stdout.splitlines() if len(lines) == 0: + current_app.logger.warning("shell_scripts/get.sh returned zero lines!") return None result_string = lines[0].decode("utf-8") fields = result_string.split(" ") if fields[0] != "true": + current_app.logger.warning(f"shell_scripts/get.sh was called for {id} which libvirt says does not exist.") return None if len(fields) < 2: