On topology discovery, ESR will be updated with pnf relationship
resulting in update ESR event causing topology discovery to run in loop.
Change-Id: I80d98d5b11f05d395e342479352656364fe071d4
Issue-ID: SDNC-357
Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
                 context.put(((String)key).replaceAll("-", ""), eventHeader.get((String)key));
             } else {
                 String action = (String) eventHeader.get((String) key);
-                if (action.equalsIgnoreCase("delete")) {
+                if (action.equalsIgnoreCase("create")) {
+                    context.put((String)key,"Update");
+                } else if (action.equalsIgnoreCase("delete")) {
                     context.put((String) key, "Delete");
                 } else {
-                    context.put((String) key, "Update");
+                    throw new IOException("Action type not supported " + action);
                 }
             }
         }