Skip to content

Commit

Permalink
Merge pull request #48 from tynanford/master
Browse files Browse the repository at this point in the history
Fix bug in recceiver cfstore function name  __merge_property_lists
  • Loading branch information
shroffk authored Feb 23, 2021
2 parents 568fe66 + 6d22c5f commit 48fcbe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/recceiver/cfstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def __updateCF__(proc, pvInfoByName, delrec, hostName, iocName, iocid, owner, io
{u'name': 'time', u'owner': owner, u'value': iocTime}],
ch[u'properties'])
if (conf.get('recordType', 'default') == 'on'):
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'])
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'])
channels.append(ch)
_log.debug("Add existing channel to previous IOC: %s", channels[-1])
"""In case alias exist, also delete them"""
Expand All @@ -356,7 +356,7 @@ def __updateCF__(proc, pvInfoByName, delrec, hostName, iocName, iocid, owner, io
{u'name': 'time', u'owner': owner, u'value': iocTime}],
a[u'properties'])
if (conf.get('recordType', 'default') == 'on'):
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'])
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'])
channels.append(a)
_log.debug("Add existing alias to previous IOC: %s", channels[-1])

Expand Down

0 comments on commit 48fcbe8

Please sign in to comment.