Skip to content

Commit 48fcbe8

Browse files
authored
Merge pull request #48 from tynanford/master
Fix bug in recceiver cfstore function name __merge_property_lists
2 parents 568fe66 + 6d22c5f commit 48fcbe8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/recceiver/cfstore.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def __updateCF__(proc, pvInfoByName, delrec, hostName, iocName, iocid, owner, io
339339
{u'name': 'time', u'owner': owner, u'value': iocTime}],
340340
ch[u'properties'])
341341
if (conf.get('recordType', 'default') == 'on'):
342-
ch[u'properties'] = __merge_property_list(ch[u'properties'].append({u'name': 'recordType', u'owner': owner, u'value': iocs[channels_dict[ch[u'name']][-1]]["recordType"]}), ch[u'properties'])
342+
ch[u'properties'] = __merge_property_lists(ch[u'properties'].append({u'name': 'recordType', u'owner': owner, u'value': iocs[channels_dict[ch[u'name']][-1]]["recordType"]}), ch[u'properties'])
343343
channels.append(ch)
344344
_log.debug("Add existing channel to previous IOC: %s", channels[-1])
345345
"""In case alias exist, also delete them"""
@@ -356,7 +356,7 @@ def __updateCF__(proc, pvInfoByName, delrec, hostName, iocName, iocid, owner, io
356356
{u'name': 'time', u'owner': owner, u'value': iocTime}],
357357
a[u'properties'])
358358
if (conf.get('recordType', 'default') == 'on'):
359-
ch[u'properties'] = __merge_property_list(ch[u'properties'].append({u'name': 'recordType', u'owner': owner, u'value': iocs[channels_dict[a[u'name']][-1]]["recordType"]}), ch[u'properties'])
359+
ch[u'properties'] = __merge_property_lists(ch[u'properties'].append({u'name': 'recordType', u'owner': owner, u'value': iocs[channels_dict[a[u'name']][-1]]["recordType"]}), ch[u'properties'])
360360
channels.append(a)
361361
_log.debug("Add existing alias to previous IOC: %s", channels[-1])
362362

0 commit comments

Comments
 (0)