In addition, grep'ing for \.stub (and even just stub) seems to not yield any results, so the self.stub property might not be used at all (and even if it would be, it would always be overwritten by the unconditional self.stub = False in the line after the if block.
Description
The check whether
RealSerialLogger
orStubSerialLogger
is used is done in thedef SerialLogger()
function now:https://github.com/canonical/testflinger/blob/88454c9d61a0f66e0dff50f2b1f9ae8c4247d57c/device-connectors/src/testflinger_device_connectors/devices/__init__.py#L69-L71
In addition, grep'ing for
\.stub
(and even juststub
) seems to not yield any results, so theself.stub
property might not be used at all (and even if it would be, it would always be overwritten by the unconditionalself.stub = False
in the line after theif
block.Resolved issues
None, but makes the code easier to follow.
Documentation
No changes.
Web service API changes
No changes.
Tests
I have not tested this.