Skip to content

Commit 363529f

Browse files
authored
Merge pull request #560 from ttranatping/STAGING-24206-bulkconfigtool-collectionissue
Adding dataStoreRef check to resolve collection issue
2 parents aba5d6e + f3d07a9 commit 363529f

File tree

1 file changed

+8
-1
lines changed
  • 99-helper-scripts/ping-bulkconfigtool/ping-bulkexport-tools-project/src/main/java/com/pingidentity/apac/pf/bulkconfigtools

1 file changed

+8
-1
lines changed

99-helper-scripts/ping-bulkconfigtool/ping-bulkexport-tools-project/src/main/java/com/pingidentity/apac/pf/bulkconfigtools/App.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,14 @@ private void processBulkJSONNode(String path, JSONObject jsonObject, JSONObject
158158
try {
159159
processBulkJSONNode(newPath, currentJSON, jsonObject, null);
160160
} catch (RemoveNodeException e) {
161-
jsonObject.remove(key);
161+
if(key.equalsIgnoreCase("dataStoreRef"))
162+
{
163+
throw new RemoveNodeException();
164+
}
165+
else
166+
{
167+
jsonObject.remove(key);
168+
}
162169
}
163170
} else if (jsonObject.get(key) instanceof JSONArray) {
164171
String newPath = path + "_" + key;

0 commit comments

Comments
 (0)