summaryrefslogtreecommitdiffstats
path: root/storage/formats/fs.py
diff options
context:
space:
mode:
authorJoel Granados Moreno <jgranado@redhat.com>2009-03-25 14:07:43 +0100
committerJoel Granados Moreno <jgranado@redhat.com>2009-03-25 14:46:41 +0100
commitf7099850b26140c568f72fed9982f3985b84164e (patch)
tree7c35d7b19ab79d9e66da6c7fc61533128ab8ce7e /storage/formats/fs.py
parentbb4fb4f4288bab359d35464edb75871efc8d350c (diff)
downloadanaconda-f7099850b26140c568f72fed9982f3985b84164e.tar.gz
anaconda-f7099850b26140c568f72fed9982f3985b84164e.tar.xz
anaconda-f7099850b26140c568f72fed9982f3985b84164e.zip
Device is sometimes None.
If its none there is no need to parse it.
Diffstat (limited to 'storage/formats/fs.py')
-rw-r--r--storage/formats/fs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index 935065125..8864b3aab 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -1012,7 +1012,7 @@ class NFS(FS):
_type = "nfs"
def _deviceCheck(self, devspec):
- if not ":" in devspec:
+ if devspec is not None and ":" not in devspec:
raise ValueError("device must be of the form <host>:<path>")
@property