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ář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2017-11-08 14:10:34 +01:00
parent 8181c5be48
commit d2804b5d89
1 changed files with 2 additions and 2 deletions

View File

@ -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