Skip to content

Commit

Permalink
Fixes the broken function call for str
Browse files Browse the repository at this point in the history
  • Loading branch information
kushaldas committed Apr 7, 2020
1 parent 1789293 commit 74ab8c4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions launcher/sdw_updater_gui/Updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,13 @@ def _safely_shutdown_vm(vm):

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")
running_vms = (
subprocess.check_output(
["qvm-ls", "--running", "--raw-list"], stderr=subprocess.PIPE
)
.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 74ab8c4

Please sign in to comment.