Commit 8cb2b4f4 authored by Helga Velroyen's avatar Helga Velroyen
Browse files

Fix lint errors



This fixes a couple of lint errors that I missed with
the patch "Fix upgrade and downgrade regarding
disk.dev_type".
Signed-off-by: default avatarHelga Velroyen <helgav@google.com>
Reviewed-by: default avatarThomas Thrainer <thomasth@google.com>
parent 7187a877
......@@ -62,7 +62,7 @@ DOWNGRADE_MINOR = 8
# (mapping differing old LD_* constants to new DT_* constants)
DEV_TYPE_OLD_NEW = {"lvm": constants.DT_PLAIN, "drbd8": constants.DT_DRBD8}
# (mapping differing new DT_* constants to old LD_* constants)
DEV_TYPE_NEW_OLD = {v:k for k,v in DEV_TYPE_OLD_NEW.items()}
DEV_TYPE_NEW_OLD = dict((v, k) for k, v in DEV_TYPE_OLD_NEW.items())
class Error(Exception):
......@@ -387,6 +387,7 @@ def DowngradeDiskDevType(disk):
"""Downgrades the disks' device type."""
ChangeDiskDevType(disk, DEV_TYPE_NEW_OLD)
def DowngradeDisks(disks, owner):
for disk in disks:
# Remove spindles to downgrade to 2.8
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment