fix TC fail issue
authoreunok.shin <eunok.shin@samsung.com>
Tue, 4 Oct 2016 08:35:49 +0000 (17:35 +0900)
committerJee Hyeok Kim <jihyeok13.kim@samsung.com>
Tue, 4 Oct 2016 10:49:58 +0000 (10:49 +0000)
Change-Id: Ib378acbee3db935aeb308742899039ee798662b8
Signed-off-by: eunok.shin <eunok.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12751
Reviewed-by: Yeonghun Nam <yeonghun.nam@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
cloud/resourcedirectory/src/main/java/org/iotivity/cloud/rdserver/resources/directory/RDManager.java

index 55b74b6c3e09a2ddf8841acd320086d0b615bbd5..881eeade608ece56274d44a7160afa7637622c64 100644 (file)
@@ -176,6 +176,10 @@ public class RDManager {
         }
 
         if (!foundRecord.isEmpty()) {
+            // set resource presence
+            for (HashMap<String, Object> record : foundRecord) {
+                record.put(Constants.TRIGGER, Constants.RES_DELETE);
+            }
             setmResourcePresence(foundRecord);
         }
     }