Moti Asayag has uploaded a new change for review. Change subject: vdsm: Support guest agent selective ip reporting ......................................................................
vdsm: Support guest agent selective ip reporting The guest agent might not report inet element, therefore processing its input should support it and return an emply ips list instead. Change-Id: I5264058737cc2b53b9bfa22d344bf26c8d269f87 Signed-off-by: Moti Asayag <[email protected]> --- M vdsm/guestIF.py 1 file changed, 8 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/14/10214/1 diff --git a/vdsm/guestIF.py b/vdsm/guestIF.py index 96c421b..8ec6f1b 100644 --- a/vdsm/guestIF.py +++ b/vdsm/guestIF.py @@ -136,8 +136,14 @@ for iface in args['interfaces']: iface['name'] = _filterXmlChars(iface['name']) iface['hw'] = _filterXmlChars(iface['hw']) - iface['inet'] = map(_filterXmlChars, iface['inet']) - iface['inet6'] = map(_filterXmlChars, iface['inet6']) + if 'inet' in iface: + iface['inet'] = map(_filterXmlChars, iface['inet']) + else: + iface['inet'] = [] + if 'inet6' in iface: + iface['inet6'] = map(_filterXmlChars, iface['inet6']) + else: + iface['inet6'] = [] interfaces.append(iface) # Provide the old information which includes # only the IP addresses. -- To view, visit http://gerrit.ovirt.org/10214 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5264058737cc2b53b9bfa22d344bf26c8d269f87 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Moti Asayag <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
