Revision b2272468 snf-cyclades-gtools/synnefo/ganeti/eventd.py

b/snf-cyclades-gtools/synnefo/ganeti/eventd.py
117 117
    try:
118 118
        client = cli.GetClient()
119 119
        fields = ["nic.networks.names", "nic.ips", "nic.macs", "nic.modes",
120
                  "nic.links", "tags"]
120
                  "nic.links", "nic.names", "tags"]
121 121
        info = client.QueryInstances([instance], fields, use_locking=False)
122
        networks, ips, macs, modes, links, tags = info[0]
123
        nic_keys = ["network", "ip", "mac", "mode", "link"]
124
        nics = zip(networks, ips, macs, modes, links)
122
        networks, ips, macs, modes, links, names, tags = info[0]
123
        nic_keys = ["network", "ip", "mac", "mode", "link", "name"]
124
        nics = zip(networks, ips, macs, modes, links, names)
125 125
        nics = map(lambda x: dict(zip(nic_keys, x)), nics)
126 126
    except ganeti_errors.OpPrereqError:
127 127
        # Not running on master! Load the conf file

Also available in: Unified diff