commit | 43143ff93b01092dc91984f9a84b69bd643ec655 | [log] [tgz] |
---|---|---|
author | Matteo Scandolo <teo@opennetworking.org> | Fri Apr 06 17:11:25 2018 -0700 |
committer | Matteo Scandolo <teo@opennetworking.org> | Fri Apr 06 17:11:25 2018 -0700 |
tree | ae521d8d9c1a7ac35b363badee23b378a035b4c5 | |
parent | b8621cd45f547245e81792dae279cd3a35be17b2 [diff] |
Temporary solution to get the OLT service to work with vSG-HW Change-Id: Ib295aad327c7582b4c6d1e2632d94788989f77ff
diff --git a/xos/synchronizer/model_policies/model_policy_voltserviceinstance.py b/xos/synchronizer/model_policies/model_policy_voltserviceinstance.py index dc457b1..f642c88 100644 --- a/xos/synchronizer/model_policies/model_policy_voltserviceinstance.py +++ b/xos/synchronizer/model_policies/model_policy_voltserviceinstance.py
@@ -85,7 +85,7 @@ # Check to see if the wrong s-tag is set. This can only happen if the # user changed the s-tag after the VOLTServiceInstance object was created. - if cur_vsg and cur_vsg.instance: + if cur_vsg and hasattr(cur_vsg, 'instance') and cur_vsg.instance: s_tags = Tag.objects.filter(content_type=cur_vsg.instance.self_content_type_id, object_id=cur_vsg.instance.id, name="s_tag") if s_tags and (s_tags[0].value != str(tenant.s_tag)):