* [PATCH] [xend] Remove hardcoded version
@ 2008-01-11 16:40 Jim Fehlig
0 siblings, 0 replies; only message in thread
From: Jim Fehlig @ 2008-01-11 16:40 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 132 bytes --]
Remove hardcoded (and apparently unused by anyone) xend version.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
Regards,
Jim
[-- Attachment #2: xend_version.diff --]
[-- Type: text/x-patch, Size: 1411 bytes --]
diff -r 8922a1469284 tools/python/xen/xend/XendNode.py
--- a/tools/python/xen/xend/XendNode.py Wed Jan 09 22:21:58 2008 +0000
+++ b/tools/python/xen/xend/XendNode.py Fri Jan 11 09:44:57 2008 -0700
@@ -377,13 +377,7 @@ class XendNode:
def xen_version(self):
info = self.xc.xeninfo()
- try:
- from xen import VERSION
- info = {'Xen': '%(xen_major)d.%(xen_minor)d' % info,
- 'Xend': VERSION}
- except (ImportError, AttributeError):
- info = {'Xen': '%(xen_major)d.%(xen_minor)d' % info,
- 'Xend': '3.0.3'}
+ info = {'Xen': '%(xen_major)d.%(xen_minor)d' % info}
# Add xend_config_format
info.update(self.xendinfo_dict())
diff -r 8922a1469284 tools/python/xen/xend/server/SrvDaemon.py
--- a/tools/python/xen/xend/server/SrvDaemon.py Wed Jan 09 22:21:58 2008 +0000
+++ b/tools/python/xen/xend/server/SrvDaemon.py Fri Jan 11 09:44:57 2008 -0700
@@ -335,12 +335,6 @@ class Daemon:
log.info("Xend changeset: %s.", xinfo['xen_changeset'])
del xc
- try:
- from xen import VERSION
- log.info("Xend version: %s", VERSION)
- except ImportError:
- log.info("Xend version: Unknown.")
-
relocate.listenRelocation()
servers = SrvServer.create()
servers.start(status)
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-01-11 16:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-11 16:40 [PATCH] [xend] Remove hardcoded version Jim Fehlig
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.