From d2804b5d89b24d6d4519bc1fe1a6aaa20f1eeb66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Wed, 8 Nov 2017 14:10:34 +0100 Subject: [PATCH] iso-wrapper: Fix calling wrong logger method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The mounting function receives logger as an argument, and its method is called just error. Signed-off-by: Lubomír Sedlář --- pungi/wrappers/iso.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pungi/wrappers/iso.py b/pungi/wrappers/iso.py index 57de0931..7e2c7108 100644 --- a/pungi/wrappers/iso.py +++ b/pungi/wrappers/iso.py @@ -394,8 +394,8 @@ def mount(image, logger=None): if ret != 0: # The mount command failed, something is wrong. Log the output and raise an exception. if logger: - logger.log_error('Command %s exited with %s and output:\n%s' - % (cmd, ret, out)) + logger.error('Command %s exited with %s and output:\n%s' + % (cmd, ret, out)) raise RuntimeError('Failed to mount %s' % image) try: yield mount_dir