Code improvements for FDS scenarios
[groupbasedpolicy.git] / groupbasedpolicy / src / main / java / org / opendaylight / groupbasedpolicy / location / resolver / LocationResolver.java
index 623a917d87788181fe6ad44109c9d82293216813..9c4feeded49195ac530f9aac50bef380193b62da 100644 (file)
@@ -130,7 +130,7 @@ public class LocationResolver implements ClusteredDataTreeChangeListener<Locatio
                     wtx.delete(LogicalDatastoreType.OPERATIONAL, iid);
                 }
             }
-            if (newAbsoluteLocation == null && addressEndpointLocation.getRelativeLocations() == null) {
+            if (newAbsoluteLocation == null) {
                 InstanceIdentifier<AddressEndpointLocation> iid = IidFactory.addressEndpointLocationIid(epKey);
                 wtx.delete(LogicalDatastoreType.OPERATIONAL, iid);
             }