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,7 +394,7 @@ 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'
|
||||
logger.error('Command %s exited with %s and output:\n%s'
|
||||
% (cmd, ret, out))
|
||||
raise RuntimeError('Failed to mount %s' % image)
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user