[PATCH 2/3] Define the _device attribute in constructor
Vratislav Podzimek
vpodzime at redhat.com
Wed Jan 21 10:50:35 UTC 2015
That's how good guys do it.
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
blivet/formats/fs.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/blivet/formats/fs.py b/blivet/formats/fs.py
index ad2542a..4bee167 100644
--- a/blivet/formats/fs.py
+++ b/blivet/formats/fs.py
@@ -1443,6 +1443,10 @@ class NFS(FS):
_type = "nfs"
_modules = ["nfs"]
+ def __init__(self, *args, **kwargs):
+ super(NFS, self).__init__(*args, **kwargs)
+ self._device = None
+
def _deviceCheck(self, devspec):
if devspec is not None and ":" not in devspec:
raise ValueError("device must be of the form <host>:<path>")
--
2.1.0
More information about the anaconda-patches
mailing list