From: mulhern amulhern@redhat.com
Related: #12
Signed-off-by: mulhern amulhern@redhat.com --- blivet/devicefactory.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/blivet/devicefactory.py b/blivet/devicefactory.py index 553d011..d2c1a67 100644 --- a/blivet/devicefactory.py +++ b/blivet/devicefactory.py @@ -66,7 +66,10 @@ def get_supported_raid_levels(device_type): elif device_type == DEVICE_TYPE_MD: pkg = mdraid
- return set(pkg.RAID_levels) if pkg else set() + if pkg and all(d.available for d in pkg.EXTERNAL_DEPENDENCIES): + return set(pkg.RAID_levels) + else: + return set()
def get_device_type(device): # the only time we should ever get a thin pool here is when we're removing