Fixing bug/typo in main.py
PATCH 1/1 Fixing bug/typo in main.py
This patch fixes a bug/typo of main.py.
1. show option "-c" of help of xm dmesg
2. fix value of parameter of arg_check of xm log
3. fix aliases of vbd-create and vbd-destroy
Signed-off-by Yoshinori Katase <[email protected]>:
Best Regards,
Yoshinori Katase
tools/python/xen/xm/main.py Thu Dec 22 11:05:02 2005 renamed from tools/python/xen/xm/main.py Wed Dec 21 19:18:19 2005 +0 -0
@@ -75,7 +75,7 @@ vcpu_set_help = """vcpu-set <DomId> <VCPUs> Set the number of VCPUs
for a domain"""
vcpu_list_help = "vcpu-list <DomId> List the VCPUs for a
domain (or all domains)"
vcpu_pin_help = "vcpu-pin <DomId> <VCPU> <CPUs> Set which cpus a VCPU can
use"
-dmesg_help = "dmesg [--clear] Read or clear Xen's
message buffer"
+dmesg_help = "dmesg [-c|--clear] Read or clear Xen's
message buffer"
info_help = "info Get information about the
xen host"
rename_help = "rename <DomId> <New Name> Rename a domain" log_help = "log Print the xend log"
@@ -672,7 +672,7 @@
server.xend_node_clear_dmesg()
def xm_log(args):
- arg_check(args, 'xm-log', 0)
+ arg_check(args, "log", 0)
from xen.xend.XendClient import server print server.xend_node_log()
@@ -845,8 +845,8 @@
"balloon": "mem-set",
"set-vcpus": "vcpu-set",
"vif-list": "network-list",
- "vbd-create": "block-create",
- "vbd-destroy": "block-destroy",
+ "vbd-create": "block-attach",
+ "vbd-destroy": "block-detach",
"vbd-list": "block-list",
}tools/python/xen/xm/main.py +4 -4
@@ -75,7 +75,7 @@ vcpu_set_help = """vcpu-set <DomId> <VCPUs> Set the number of VCPUs for a domain""" vcpu_list_help = "vcpu-list <DomId> List the VCPUs for a domain (or all domains)" vcpu_pin_help = "vcpu-pin <DomId> <VCPU> <CPUs> Set which cpus a VCPU can use" -dmesg_help = "dmesg [--clear] Read or clear Xen's message buffer" +dmesg_help = "dmesg [-c|--clear] Read or clear Xen's message buffer" info_help = "info Get information about the xen host" rename_help = "rename <DomId> <New Name> Rename a domain" log_help = "log Print the xend log"
@@ -672,7 +672,7 @@ server.xend_node_clear_dmesg() def xm_log(args): - arg_check(args, 'xm-log', 0) + arg_check(args, "log", 0) from xen.xend.XendClient import server print server.xend_node_log()
@@ -845,8 +845,8 @@ "balloon": "mem-set", "set-vcpus": "vcpu-set", "vif-list": "network-list", - "vbd-create": "block-create", - "vbd-destroy": "block-destroy", + "vbd-create": "block-attach", + "vbd-destroy": "block-detach", "vbd-list": "block-list", }
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 8 lines · Yoshinori Katase
This patch fixes a bug/typo of
main.py.
1. show option "-c" of help of xm dmesg
2. fix value of parameter ofarg_checkof xm log
3. fix aliases of vbd-create and vbd-destroySigned-off-by Yoshinori Katase <[email protected]>:
Best Regards,
Yoshinori Katase
Thank you. I've applied that.
Ewan.