|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] Fix xm labels
Hi, This patch fixes "xm labels type=any" command error. When the command "xm labels type=any" was input, the label of the resource was not displayed before. So,I fixed it. Thanks, Signed-off-by: Syunsuke HAYASHI <syunsuke@xxxxxxxxxxxxxx> diff -r b28ae5f00553 tools/python/xen/xm/labels.py
--- a/tools/python/xen/xm/labels.py Tue Oct 23 09:26:43 2007 +0100
+++ b/tools/python/xen/xm/labels.py Fri Oct 26 11:11:36 2007 +0900
@@ -98,11 +98,8 @@ def labels_xapi(policy, ptype):
names1 = acmpol.policy_get_virtualmachinelabel_names()
if ptype == 'res' or ptype == 'any':
names2 = acmpol.policy_get_resourcelabel_names()
- if len(names1) > 0:
- names = set(names1)
- names.union(names2)
- else:
- names = set(names2)
+ names = list(set(names1).union(names2))
+ names.sort()
for n in names:
print n
elif int(policystate['type']) == 0:
_______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |