commit | 710ad620bd9d228602d314de2e58d64821c2de1c | [log] [tgz] |
---|---|---|
author | Matteo Scandolo <teo@opennetworking.org> | Mon Jul 30 10:52:41 2018 -0400 |
committer | Matteo Scandolo <teo@opennetworking.org> | Tue Jul 31 15:22:21 2018 -0400 |
tree | 27a361d1aea9da896091478076e5b6863f0f52dc | |
parent | b517fb23b621dfe890f978cefd9a88178a047919 [diff] [blame] |
Listening for DHCP event Change-Id: Ice634e1f5ba2c0864c57a207ebd54b572d6e1e62
diff --git a/xos/synchronizer/model_policies/model_policy_hippieossserviceinstance.py b/xos/synchronizer/model_policies/model_policy_hippieossserviceinstance.py index 2a86fac..3c0b1dc 100644 --- a/xos/synchronizer/model_policies/model_policy_hippieossserviceinstance.py +++ b/xos/synchronizer/model_policies/model_policy_hippieossserviceinstance.py
@@ -100,8 +100,8 @@ self.logger.debug("MODEL_POLICY: creating subscriber") subscriber = self.create_subscriber(si) self.update_and_save_subscriber(subscriber, si) - # if the subscriber is there, update its state - elif subscriber: + # if the subscriber is there and authentication is complete, update its state + elif subscriber and si.authentication_state == "APPROVED": self.logger.debug("MODEL_POLICY: updating subscriber status") self.update_and_save_subscriber(subscriber, si, update_timestamp=True)