Commit 40edb0cc authored by Michael Hanselmann's avatar Michael Hanselmann

move-instance: Use constants for parameters

Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent cc87d736
......@@ -460,15 +460,15 @@ class MoveDestExecutor(object):
disk_template = instance["disk_template"]
disks = [{
"size": i["size"],
"mode": i["mode"],
constants.IDISK_SIZE: i["size"],
constants.IDISK_MODE: i["mode"],
} for i in instance["disks"]]
nics = [{
"ip": ip,
"mac": mac,
"mode": mode,
"link": link,
constants.INIC_IP: ip,
constants.INIC_MAC: mac,
constants.INIC_MODE: mode,
constants.INIC_LINK: link,
} for ip, mac, mode, link in instance["nics"]]
# TODO: Should this be the actual up/down status? (run_state)
......
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