SEBA-497 delayering, Makefile, and tox for att-workflow-drvier
Change-Id: I5869c36b8b716cab02ae12a343969c4feeacf5fb
diff --git a/xos/synchronizer/event_steps/auth_event.py b/xos/synchronizer/event_steps/auth_event.py
index 2d9f4d7..b7124a9 100644
--- a/xos/synchronizer/event_steps/auth_event.py
+++ b/xos/synchronizer/event_steps/auth_event.py
@@ -14,12 +14,10 @@
# limitations under the License.
import json
-import time
-import os
-import sys
from xossynchronizer.event_steps.eventstep import EventStep
from helpers import AttHelpers
+
class SubscriberAuthEventStep(EventStep):
topics = ["authentication.events"]
technology = "kafka"
@@ -33,10 +31,12 @@
onu_sn = AttHelpers.get_onu_sn(self.model_accessor, self.log, value)
si = AttHelpers.get_si_by_sn(self.model_accessor, self.log, onu_sn)
if not si:
- self.log.exception("authentication.events: Cannot find att-workflow-driver service instance for this event", kafka_event=value)
+ self.log.exception(
+ "authentication.events: Cannot find att-workflow-driver service instance for this event",
+ kafka_event=value)
raise Exception("authentication.events: Cannot find att-workflow-driver service instance for this event")
self.log.info("authentication.events: Got event for subscriber", event_value=value, onu_sn=onu_sn, si=si)
- si.authentication_state = value["authenticationState"];
+ si.authentication_state = value["authenticationState"]
si.save_changed_fields(always_update_timestamp=True)