From 55f2b00366745d1713ed523cfcec5cb63799f883 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 18 Jul 2021 20:18:23 -0400 Subject: [PATCH] Add some spaces for better readability --- client-cli/pvc/cli_lib/vm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client-cli/pvc/cli_lib/vm.py b/client-cli/pvc/cli_lib/vm.py index c45bc6bc..47e74e05 100644 --- a/client-cli/pvc/cli_lib/vm.py +++ b/client-cli/pvc/cli_lib/vm.py @@ -1245,8 +1245,10 @@ def follow_console_log(config, vm, lines=10): # Split the new and old log strings into constitutent lines old_console_loglines = console_log.split('\n') new_console_loglines = new_console_log.split('\n') + # Set the console log to the new log value for the next iteration console_log = new_console_log + # Remove the lines from the old log until we hit the first line of the new log; this # ensures that the old log is a string that we can remove from the new log entirely for index, line in enumerate(old_console_loglines, start=0):