Commit b577dac4 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

gnt-instance info: Show disk template

The data was already there, but not shown.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent ab92578a
......@@ -1148,6 +1148,7 @@ def _FormatParameterDict(buf, per_inst, actual):
val = per_inst.get(key, "default (%s)" % actual[key])
buf.write(" - %s: %s\n" % (key, val))
def ShowInstanceConfig(opts, args):
"""Compute instance run-time status.
......@@ -1235,6 +1236,7 @@ def ShowInstanceConfig(opts, args):
for idx, (ip, mac, mode, link) in enumerate(instance["nics"]):
buf.write(" - nic/%d: MAC: %s, IP: %s, mode: %s, link: %s\n" %
(idx, mac, ip, mode, link))
buf.write(" Disk template: %s\n" % instance["disk_template"])
buf.write(" Disks:\n")
for idx, device in enumerate(instance["disks"]):
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