diff options
| author | Yun Mao <yunmao@gmail.com> | 2012-08-24 20:51:25 -0400 |
|---|---|---|
| committer | Yun Mao <yunmao@gmail.com> | 2012-08-25 09:23:33 -0400 |
| commit | 72815cfa963e307df9376ec9eeb296dc45b8acbc (patch) | |
| tree | 8d26519e817df4b4ded231fd992a4299afc9f3ad /nova | |
| parent | 1e5914a45dab1597d2b973aa17ff321fe8ec9b55 (diff) | |
| download | nova-72815cfa963e307df9376ec9eeb296dc45b8acbc.tar.gz nova-72815cfa963e307df9376ec9eeb296dc45b8acbc.tar.xz nova-72815cfa963e307df9376ec9eeb296dc45b8acbc.zip | |
Define default mode and device_id_string in Mount
self.mode is not a valid class member in the Mount abstract class,
but used in map_dev(). Although all the subclasses define it so
there is no runtime bug, define it to avoid confusion and
better readability.
Do the same thing for device_id_string as precaution too.
Partially fix bug 1037183
Change-Id: Ica32db1ca17c6ed967f2c310b1d54adeb5f4247c
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/virt/disk/mount.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/virt/disk/mount.py b/nova/virt/disk/mount.py index be2f22ba0..e499e8e8e 100644 --- a/nova/virt/disk/mount.py +++ b/nova/virt/disk/mount.py @@ -30,6 +30,8 @@ class Mount(object): to be called in that order. """ + mode = device_id_string = None # to be overridden in subclasses + def __init__(self, image, mount_dir, partition=None, device=None): # Input |
