LGTM

On Sat, Feb 16, 2013 at 2:19 PM, Dimitris Aragiorgis <[email protected]>wrote:

> This was before the case too. Now is bit trickier because nic.network
> is uuid. Info must derive from nic.netinfo.
> ---
>  lib/client/gnt_instance.py |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lib/client/gnt_instance.py b/lib/client/gnt_instance.py
> index ee9bf44..f223566 100644
> --- a/lib/client/gnt_instance.py
> +++ b/lib/client/gnt_instance.py
> @@ -1177,10 +1177,10 @@ def ShowInstanceConfig(opts, args):
>      FormatParameterDict(buf, instance["be_instance"], be_actual, level=2)
>      # TODO(ganeti 2.7) rework the NICs as well
>      buf.write("    - NICs:\n")
> -    for idx, (ip, mac, mode, link, network, _) in
> enumerate(instance["nics"]):
> +    for idx, (ip, mac, mode, link, _, netinfo) in
> enumerate(instance["nics"]):
>        buf.write("      - nic/%d: MAC: %s, IP: %s,"
>                  " mode: %s, link: %s, network: %s\n" %
> -                (idx, mac, ip, mode, link, network))
> +                (idx, mac, ip, mode, link, netinfo["name"]))
>      buf.write("  Disk template: %s\n" % instance["disk_template"])
>      buf.write("  Disks:\n")
>
> --
> 1.7.10.4
>
>

Reply via email to