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:
|
if ret != 0:
|
||||||
# The mount command failed, something is wrong. Log the output and raise an exception.
|
# The mount command failed, something is wrong. Log the output and raise an exception.
|
||||||
if logger:
|
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))
|
% (cmd, ret, out))
|
||||||
raise RuntimeError('Failed to mount %s' % image)
|
raise RuntimeError('Failed to mount %s' % image)
|
||||||
try:
|
try:
|
||||||
yield mount_dir
|
yield mount_dir
|
||||||
|
Loading…
Reference in New Issue
Block a user