[blivet:rhel7/master 3/4] Introduce two new SanityErrors (#1060255)

mulhern amulhern at redhat.com
Fri Feb 7 15:01:13 UTC 2014


Related: rhbz#1060255

SanityError should be something generated by blivet.sanityCheck.
LUKSDeviceWithoutKeyError is the only distinguished subclass. It's special,
because in some situations where sanityCheck is called, a missing key
should not be considered fatal, but it's the caller's job to figure out if
that is the situation.

Signed-off-by: mulhern <amulhern at redhat.com>
---
 blivet/errors.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/blivet/errors.py b/blivet/errors.py
index bc538c9..b8d0ea0 100644
--- a/blivet/errors.py
+++ b/blivet/errors.py
@@ -192,3 +192,10 @@ class NoDisksError(StorageError):
 # factories
 class DeviceFactoryError(StorageError):
     pass
+
+#sanity
+class SanityError(StorageError):
+    pass
+
+class LUKSDeviceWithoutKeyError(SanityError):
+    pass
-- 
1.8.3.1



More information about the anaconda-patches mailing list