Skip to content
Snippets Groups Projects
Commit cb917696 authored by Taya Snijder's avatar Taya Snijder
Browse files

changed set_pass_func function calls in arguments

parent b9212852
No related branches found
No related tags found
1 merge request!32Resolve L2SS-216 "2021 05 17 branched from master sdp hotfix"
...@@ -167,7 +167,7 @@ class APSCTL(hardware_device): ...@@ -167,7 +167,7 @@ class APSCTL(hardware_device):
i.set_comm_client(self.OPCua_client) i.set_comm_client(self.OPCua_client)
except: except:
# use the pass function instead of setting read/write fails # use the pass function instead of setting read/write fails
i.set_pass_func(self.OPCua_client) i.set_pass_func()
self.error_stream("error in getting APSCTL attribute: {} from client".format(i)) self.error_stream("error in getting APSCTL attribute: {} from client".format(i))
self.OPCua_client.start() self.OPCua_client.start()
......
...@@ -146,7 +146,7 @@ class PCC(hardware_device): ...@@ -146,7 +146,7 @@ class PCC(hardware_device):
i.set_comm_client(self.OPCua_client) i.set_comm_client(self.OPCua_client)
except: except:
# use the pass function instead of setting read/write fails # use the pass function instead of setting read/write fails
i.set_pass_func(self.OPCua_client) i.set_pass_func()
self.error_stream("error in getting PCC attribute: {} from client".format(i)) self.error_stream("error in getting PCC attribute: {} from client".format(i))
self.OPCua_client.start() self.OPCua_client.start()
......
...@@ -140,8 +140,9 @@ class SDP(hardware_device): ...@@ -140,8 +140,9 @@ class SDP(hardware_device):
i.set_comm_client(self.OPCua_client) i.set_comm_client(self.OPCua_client)
except: except:
# use the pass function instead of setting read/write fails # use the pass function instead of setting read/write fails
i.set_pass_func(self.OPCua_client) i.set_pass_func()
self.error_stream("error in getting SDP attribute: {} from client".format(i)) self.debug_stream("error in getting SDP attribute: {} from client".format(i))
pass
self.OPCua_client.start() self.OPCua_client.start()
......
...@@ -94,7 +94,7 @@ class SNMP(hardware_device): ...@@ -94,7 +94,7 @@ class SNMP(hardware_device):
i.set_comm_client(self.snmp_manager) i.set_comm_client(self.snmp_manager)
except: except:
# use the pass function instead of setting read/write fails # use the pass function instead of setting read/write fails
i.set_pass_func(self.snmp_manager) i.set_pass_func()
self.error_stream("error in getting SNMP attribute: {} from client".format(i)) self.error_stream("error in getting SNMP attribute: {} from client".format(i))
self.snmp_manager.start() self.snmp_manager.start()
......
...@@ -112,7 +112,7 @@ class ini_device(hardware_device): ...@@ -112,7 +112,7 @@ class ini_device(hardware_device):
i.set_comm_client(self.ini_client) i.set_comm_client(self.ini_client)
except: except:
# use the pass function instead of setting read/write fails # use the pass function instead of setting read/write fails
i.set_pass_func(self.ini_client) i.set_pass_func()
self.error_stream("error in getting ini attribute: {} from client".format(i)) self.error_stream("error in getting ini attribute: {} from client".format(i))
self.ini_client.start() self.ini_client.start()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment