From d2804b5d89b24d6d4519bc1fe1a6aaa20f1eeb66 Mon Sep 17 00:00:00 2001 From: Lubomír Sedlář Date: Nov 13 2017 08:04:34 +0000 Subject: iso-wrapper: Fix calling wrong logger method The mounting function receives logger as an argument, and its method is called just error. Signed-off-by: Lubomír Sedlář --- diff --git a/pungi/wrappers/iso.py b/pungi/wrappers/iso.py index 57de093..7e2c710 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