[SEBA-571] Reset subscriber status when ONU is disabled
Change-Id: Ic05484e0bbf52ab82ee712b895638cbe4e4bacf9
diff --git a/xos/synchronizer/helpers.py b/xos/synchronizer/helpers.py
index afc471b..b6b69d4 100644
--- a/xos/synchronizer/helpers.py
+++ b/xos/synchronizer/helpers.py
@@ -40,7 +40,8 @@
whitelisted = matching_entries[0]
try:
- pon_port = model_accessor.ONUDevice.objects.get(serial_number=att_si.serial_number).pon_port
+ onu = model_accessor.ONUDevice.objects.get(serial_number=att_si.serial_number)
+ pon_port = onu.pon_port
except IndexError:
raise DeferredException("ONU device %s is not know to XOS yet" % att_si.serial_number)