xend: Avoid unnecessary writes to xenstore.

Type of rtc/timeoffset is not 'int' but 'str'.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-08-17 09:59:28 +01:00
1 parent 6fcad535ee
commit 0af35cef10
1 file changed
+1 -1
+1 -1
View File
@@ -981,7 +981,7 @@ class XendDomainInfo:
changed = True
# Check if the rtc offset has changes
if vm_details.get("rtc/timeoffset", 0) != self.info["platform"].get("rtc_timeoffset", 0):
if vm_details.get("rtc/timeoffset", "0") != self.info["platform"].get("rtc_timeoffset", "0"):
self.info["platform"]["rtc_timeoffset"] = vm_details.get("rtc/timeoffset", 0)
changed = True
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.