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:
parent
8181c5be48
commit
d2804b5d89
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user