diff options
| author | Chris Lumens <clumens@redhat.com> | 2007-09-05 13:06:00 +0000 |
|---|---|---|
| committer | Chris Lumens <clumens@redhat.com> | 2007-09-05 13:06:00 +0000 |
| commit | 49cf331c4f375d48ca14792ac89c8c0ced42ca8a (patch) | |
| tree | c99c5db6051b3e65a3b1c0fa59357d30c62b6e6d | |
| parent | 50254b6152bf570b9663df8724229922da41d7e8 (diff) | |
Don't be as clever breaking the method string up.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | harddrive.py | 6 |
2 files changed, 7 insertions, 4 deletions
@@ -1,3 +1,8 @@ +2007-09-05 Chris Lumens <clumens@redhat.com> + + * harddrive.py (HardDriveInstallMethod.__init__): Don't be as clever + breaking the method string up. + 2007-09-04 Bill Nottingham <notting@redhat.com> * scripts/upd-instroot (KEEPFILE): Need python-iniparse (#276941) diff --git a/harddrive.py b/harddrive.py index e4a9b7641..436e17656 100644 --- a/harddrive.py +++ b/harddrive.py @@ -169,14 +169,12 @@ class HardDriveInstallMethod(ImageInstallMethod): # we cannot remove the partition we are hosting hard drive install from def protectedPartitions(self): return [self.device] - + def __init__(self, method, rootPath, intf): """@param method hd://device:fstype:/path""" method = method[5:] + (device, fstype, path) = method.split(":", 3) device = method[0:method.index(":")] - tmpmethod = method[method.index(":") + 1:] - fstype = tmpmethod[0:tmpmethod.index("/")] - path = tmpmethod[tmpmethod.index("/") + 1:] ImageInstallMethod.__init__(self, method, rootPath, intf) |
