[PATCH] Device is sometimes None.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If its none there is no need to parse it.
---
 storage/formats/fs.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index 9350651..9480c53 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -1012,7 +1012,9 @@ class NFS(FS):
     _type = "nfs"
 
     def _deviceCheck(self, devspec):
-        if not ":" in devspec:
+        if devspec == None:
+            pass
+        elif not ":" in devspec:
             raise ValueError("device must be of the form <host>:<path>")
 
     @property
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux