Skip to content

Commit

Permalink
Fix handling of lists without '[]' and fix TODO in getObjectCustomPro…
Browse files Browse the repository at this point in the history
…perty()
  • Loading branch information
gpoul committed Oct 21, 2015
1 parent e5ccff5 commit 9f10b98
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/wsadminlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -5433,11 +5433,10 @@ def getObjectCustomProperty(object_id, propname):
#print "value of properties attribute=%s" % x
# This can be of the format "[foo(value) bar(baz)]" where the values are "foo(value)",
# "bar(baz)". It also seems to be able to be just "foo(value)"
# FIXME: should we use _splitlist here? If so, we need to change it to work when no [] are given
if x.startswith("["):
propsidlist = x[1:-1].split(' ')
propsidlist = _splitlist(x)
else:
propsidlist = [x]
propsidlist = _splitlist('[' + x + ']')
#print "List of properties = %s" % repr(propsidlist)
for id in propsidlist:
#print "id=%s" % id
Expand Down

0 comments on commit 9f10b98

Please sign in to comment.