[PATCH 3/4] Fix some real errors pylint found in pyanaconda/image.py.
Chris Lumens
clumens at redhat.com
Wed Jun 19 13:58:49 UTC 2013
---
pyanaconda/image.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pyanaconda/image.py b/pyanaconda/image.py
index d415196..3070dc1 100644
--- a/pyanaconda/image.py
+++ b/pyanaconda/image.py
@@ -26,6 +26,7 @@ from errors import *
import blivet.util
import blivet.arch
+from blivet.errors import StorageError
import logging
log = logging.getLogger("anaconda")
@@ -137,7 +138,7 @@ def mountImageDirectory(method, storage):
exn = MediaMountError(str(e))
if errorHandler.cb(exn) == ERROR_RAISE:
raise exn
- elif methodstr.startswith("nfsiso:"):
+ elif method.method.startswith("nfsiso:"):
# XXX what if we mount it on ISO_DIR and then create a symlink
# if there are no isos instead of the remount?
--
1.8.1.2
More information about the anaconda-patches
mailing list