remove rv from unmount error log

You obviously cannot reference it when it hasn't been set.
This commit is contained in:
Brian C. Lane 2012-09-21 09:19:04 -07:00
parent b6a20c49e6
commit a83c8c1df0
1 changed files with 2 additions and 2 deletions

View File

@ -133,8 +133,8 @@ def umount(mnt, lazy=False, maxretry=3, retrysleep=1.0):
count += 1
if count == maxretry:
raise
logger.warn("failed to unmount %s (%d). retrying (%d/%d)...",
mnt, rv, count, maxretry)
logger.warn("failed to unmount %s. retrying (%d/%d)...",
mnt, count, maxretry)
if logger.getEffectiveLevel() <= logging.DEBUG:
fuser = execWithCapture("fuser", ["-vm", mnt])
logger.debug("fuser -vm:\n%s\n", fuser)