Skip to content

Commit

Permalink
Makes updater logs more readable, running VMs
Browse files Browse the repository at this point in the history
The qvm-ls output wasn't easy on the eyes, so reformatted as a list. A
bit cautious around chaining formatting specifically for logs when we're
already in a try block, but these changes are darn simple.
  • Loading branch information
Conor Schaefer committed Apr 6, 2020
1 parent 6836eb5 commit 1789293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion launcher/sdw_updater_gui/Updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ def _safely_start_vm(vm):
try:
running_vms = subprocess.check_output(
["qvm-ls", "--running", "--raw-list"], stderr=subprocess.PIPE
)
).decode("utf-8").strip().split("\n")
sdlog.info("VMs running before start of {}: {}".format(vm, running_vms))
subprocess.check_output(
["qvm-start", "--skip-if-running", vm], stderr=subprocess.PIPE
Expand Down

0 comments on commit 1789293

Please sign in to comment.