Vinzenz Feenstra has uploaded a new change for review.

Change subject: agent: Reported MAC on Windows now the same as on Linux
......................................................................

agent: Reported MAC on Windows now the same as on Linux

Reporting of the MAC differs between linux and Windows guest operating
systems. The windows operating system reports it separated by dashes '-'.
This changeset will replace those dashes with colons ':'

Change-Id: Id19a8944025ee22d82a57b99fe4ba1c4315c27e9
Bug-Url: https://bugzilla.redhat.com/908761
Signed-off-by: Vinzenz Feenstra <vfeen...@redhat.com>
---
M ovirt-guest-agent/GuestAgentWin32.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-guest-agent 
refs/changes/79/12079/1

diff --git a/ovirt-guest-agent/GuestAgentWin32.py 
b/ovirt-guest-agent/GuestAgentWin32.py
index 9cdff4a..a69d845 100644
--- a/ovirt-guest-agent/GuestAgentWin32.py
+++ b/ovirt-guest-agent/GuestAgentWin32.py
@@ -58,7 +58,7 @@
                             inet6.append(ip)
                 interfaces.append({ 'name' : adapter.Description,
                     'inet' : inet, 'inet6' : inet6,
-                    'hw' : adapter.MacAddress.lower() })
+                    'hw' : adapter.MacAddress.lower().replace('-', ':') })
     except:
         logging.exception("Error retrieving network interfaces.")
     return interfaces


--
To view, visit http://gerrit.ovirt.org/12079
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id19a8944025ee22d82a57b99fe4ba1c4315c27e9
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-guest-agent
Gerrit-Branch: master
Gerrit-Owner: Vinzenz Feenstra <vfeen...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to