diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-08-17 09:59:28 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-08-17 09:59:28 +0100 |
commit | 0af35cef10c0f7810f1b262d67486748d508eb52 (patch) | |
tree | 7a2e1bc180bc644e498b1f6db3b8a9d27c93481b /tools | |
parent | 6fcad535ee3a47e3efee9a45bb6cb40b5ab76898 (diff) | |
download | xen-0af35cef10c0f7810f1b262d67486748d508eb52.tar.gz xen-0af35cef10c0f7810f1b262d67486748d508eb52.tar.bz2 xen-0af35cef10c0f7810f1b262d67486748d508eb52.zip |
xend: Avoid unnecessary writes to xenstore.
Type of rtc/timeoffset is not 'int' but 'str'.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/python/xen/xend/XendDomainInfo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 3ca3f506d0..1a9622d002 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -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 |