Change in vdsm[master]: vdsm-tool: Ensure that the vdsm uuid is a string

fabiand at redhat.com fabiand at redhat.com
Mon Oct 5 10:53:33 UTC 2015


Fabian Deutsch has uploaded a new change for review.

Change subject: vdsm-tool: Ensure that the vdsm uuid is a string
......................................................................

vdsm-tool: Ensure that the vdsm uuid is a string

Change-Id: I3c1f341dd66a468cf704158789e158f6d61f1d98
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M lib/vdsm/tool/register.py
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/70/46970/1

diff --git a/lib/vdsm/tool/register.py b/lib/vdsm/tool/register.py
index 47c8412..ae8fecd 100644
--- a/lib/vdsm/tool/register.py
+++ b/lib/vdsm/tool/register.py
@@ -271,8 +271,8 @@
             os.unlink(__VDSM_ID)
 
         if not os.path.exists(__VDSM_ID):
-            with open(__VDSM_ID, 'w') as f:
-                f.write(self.uuid)
+            with open(__VDSM_ID, 'wt') as f:
+                f.write(str(self.uuid))
 
             if utils.isOvirtNode():
                 from ovirt.node.utils.fs import Config


-- 
To view, visit https://gerrit.ovirt.org/46970
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3c1f341dd66a468cf704158789e158f6d61f1d98
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>


More information about the vdsm-patches mailing list