[cli] Fix issues with logging unescaped strings (#9960)

This commit is contained in:
Maksim Smolin
2020-08-06 14:44:39 -07:00
committed by GitHub
parent fc9fc342cf
commit eace94d2dc
5 changed files with 23 additions and 13 deletions
+2 -2
View File
@@ -324,8 +324,8 @@ class SSHCommandRunner(CommandRunnerInterface):
try:
os.makedirs(self.ssh_control_path, mode=0o700, exist_ok=True)
except OSError as e:
cli_logger.warning(e) # todo: msg
cli_logger.old_warning(logger, e)
cli_logger.warning("{}", str(e)) # todo: msg
cli_logger.old_warning(logger, "{}", str(e))
def run(self,
cmd,