mirror of
https://opendev.org/x/pyghmi
synced 2025-01-27 19:37:44 +00:00
Support '=' as a list delimiter
The ASU utility had created an expectation of = delimiting. Do not advertise it, but also do not break when faced with that expectation. Change-Id: I32c58db3d8be141d50f0d77b85c29371094a8e12
This commit is contained in:
parent
758507764a
commit
1eb6577c20
@ -174,7 +174,12 @@ class IMMClient(object):
|
||||
changeset[key] = {'value': changeset[key]}
|
||||
newvalue = changeset[key]['value']
|
||||
if self.fwo[key]['is_list'] and not isinstance(newvalue, list):
|
||||
newvalues = newvalue.split(',')
|
||||
if '=' in newvalue:
|
||||
# ASU set a precedent of = delimited settings
|
||||
# for now, honor that delimiter as well
|
||||
newvalues = newvalue.split('=')
|
||||
else:
|
||||
newvalues = newvalue.split(',')
|
||||
else:
|
||||
newvalues = [newvalue]
|
||||
newnewvalues = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user