Correction of uncomplet cherry-pick
[groupbasedpolicy.git] / groupbasedpolicy / src / main / java / org / opendaylight / groupbasedpolicy / resolver / PolicyResolver.java
index aa293f31286285281b80af38cb2931268f806b46..a03ef83122c5c1d3e227fe74d572fe5418a68728 100755 (executable)
@@ -336,7 +336,8 @@ public class PolicyResolver implements AutoCloseable {
             @Override
             public void onSuccess(Optional<Tenant> result) {
                 if(result.isPresent()){
-                    unsubscribeTenant(tenantId);
+                    TenantContext tenantContext = resolvedTenants.get(tenantId);
+                    tenantContext.tenant.set(null);
                     rwTx.delete(LogicalDatastoreType.OPERATIONAL, tiid);
                     rwTx.submit();
                     updatePolicy();