Vitor de Lima has uploaded a new change for review. Change subject: vdsm: hardware: Remove null character from the id on IBM POWER ......................................................................
vdsm: hardware: Remove null character from the id on IBM POWER The hardware id for IBM POWER machines had a trailing null character that caused errors in the oVirt engine. Change-Id: Ia74ac58d334c944c6042f033d622a09b86c8325d Signed-off-by: Vitor de Lima <[email protected]> --- M src/plugins/ovirt-host-deploy/vdsm/vdsmid.py 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-host-deploy refs/changes/79/17279/1 diff --git a/src/plugins/ovirt-host-deploy/vdsm/vdsmid.py b/src/plugins/ovirt-host-deploy/vdsm/vdsmid.py index 5bc0466..884f184 100644 --- a/src/plugins/ovirt-host-deploy/vdsm/vdsmid.py +++ b/src/plugins/ovirt-host-deploy/vdsm/vdsmid.py @@ -110,7 +110,7 @@ #eg. output IBM,03061C14A if os.path.exists('/proc/device-tree/system-id'): with open('/proc/device-tree/system-id') as f: - vdsmId = f.readline().replace(',', '') + vdsmId = f.readline().replace(',', '').rstrip('\0') if vdsmId is None: vdsmId = str(uuid.uuid4()) -- To view, visit http://gerrit.ovirt.org/17279 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia74ac58d334c944c6042f033d622a09b86c8325d Gerrit-PatchSet: 1 Gerrit-Project: ovirt-host-deploy Gerrit-Branch: master Gerrit-Owner: Vitor de Lima <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
