- append = options.get('append', True)
- logger.debug("verify_slice_attributes, append mode: {}".format(append))
- for requested_slice_attribute in requested_slice_attributes:
- logger.debug("verify_slice_attributes, incoming req : {}".format(requested_slice_attribute))
+
+ # lookup 'pltags' in options to find out which mode is requested here
+ pltags = options.get('pltags', 'ignore')
+ # make sure the default is 'ignore'
+ if pltags not in ('ignore', 'append', 'sync'):
+ pltags = 'ignore'
+
+ if pltags == 'ignore':
+ logger.info('verify_slice_tags in ignore mode - leaving slice tags as-is')
+ return
+
+ # incoming data (attributes) have a (name, value) pair
+ # while PLC data (tags) have a (tagname, value) pair
+ # we must be careful not to mix these up
+