incubator-tashi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strou...@apache.org
Subject svn commit: r1301183 - /incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py
Date Thu, 15 Mar 2012 20:26:41 GMT
Author: stroucki
Date: Thu Mar 15 20:26:41 2012
New Revision: 1301183

URL: http://svn.apache.org/viewvc?rev=1301183&view=rev
Log:
qcow: python provides os.path.realpath which will deal with relative links

Modified:
    incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py

Modified: incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py
URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py?rev=1301183&r1=1301182&r2=1301183&view=diff
==============================================================================
--- incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py (original)
+++ incubator/tashi/trunk/src/tashi/nodemanager/vmcontrol/qemu.py Thu Mar 15 20:26:41 2012
@@ -130,10 +130,8 @@ class Qemu(VmControlInterface):
 			self.__dict__.update(attrs)
 
 	def __dereferenceLink(self, spec):
-		while os.path.islink(spec):
-			spec = os.readlink(spec)
-
-		return spec
+		newspec = os.path.realpath(spec)
+		return newspec
 
 
 	def __getHostPids(self):



Mime
View raw message