xm: fix "xm labels type=any" command error

Signed-off-by: Syunsuke HAYASHI <syunsuke@jp.fujitsu.com>
This commit is contained in:
Keir Fraser committed 2007-11-05 13:15:56 +00:00
1 parent f7b2b7e319
commit bb768314f2
1 file changed
+2 -5
+2 -5
View File
@@ -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:
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.