[rhel7-branch 1/6] Remove redundant check for parents in Blivet.newBTRFS.

dwlehman installerbot-noreply at redhat.com
Tue Jun 2 14:31:51 UTC 2015


From: David Lehman <dlehman at redhat.com>

(cherry picked from commit 58884e4581a2076675c728c8a5ce15a04c4c3e62)

Resolves: rhbz#1072285
---
 blivet/__init__.py | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/blivet/__init__.py b/blivet/__init__.py
index 1f47add..b57b9cb 100644
--- a/blivet/__init__.py
+++ b/blivet/__init__.py
@@ -1223,11 +1223,6 @@ def newBTRFS(self, *args, **kwargs):
 
         if kwargs.pop("subvol", False):
             dev_class = BTRFSSubVolumeDevice
-            # make sure there's a valid parent device
-            parents = kwargs.get("parents", [])
-            if not parents or len(parents) != 1 or \
-               not isinstance(parents[0], BTRFSVolumeDevice):
-                raise ValueError("new btrfs subvols require a parent volume")
 
             # set up the subvol name, using mountpoint if necessary
             if not name:


-- 
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/e4fc7611c7ab04d260f4a4a7c62137e114cc09bb


More information about the anaconda-patches mailing list