Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/microesb.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,15 +583,17 @@ def __init__(self, *, class_mapper, service_call_data):
self.logger.debug('SYSBackendMethod:{}'.format(bm_root))
bm_class_id, bm_method = next(iter(bm_root.items()))

backend_class_id = bm_class_id
class_properties_id = bm_class_id
try:
bm_class_id = class_references[bm_class_id]['property_ref']
class_properties_id = class_references[bm_class_id]['property_ref']
except KeyError as e:
self.logger.debug(
'BackendMethod no class_ref:{} exception:{}'.format(bm_class_id, e)
)

if bm_method in class_properties[bm_class_id]['methods']:
getattr(getattr(self._class_mapper, bm_class_id), bm_method)()
if bm_method in class_properties[class_properties_id]['methods']:
getattr(getattr(self._class_mapper, backend_class_id), bm_method)()

def _map(
self,
Expand Down