Joel Granados Moreno wrote:
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
I'd patch with
+ if devspec is not None and ":" not in devspec:
but it's only more readable to me,
I'm ok with the patch
Radek
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list