Skip to content

Commit ccedd54

Browse files
committed
Minor tweak to the extraction rule cell to handle an edge case
1 parent 9a5ebf1 commit ccedd54

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

notebooks/enterprise-search/elastic-crawler-to-open-crawler-migration.ipynb

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -311,13 +311,15 @@
311311
" }\n",
312312
" ]\n",
313313
"\n",
314-
" print(\n",
315-
" f\"{extr_count}.) Crawler {config_oid} has extraction rules {temp_extraction_rulesets}\\n\"\n",
316-
" )\n",
317-
" extr_count += 1\n",
318-
" inflight_configuration_data[config_oid][\"domains_temp\"][domain_oid][\n",
319-
" \"extraction_rulesets\"\n",
320-
" ] = temp_extraction_rulesets"
314+
" if domain_oid in inflight_configuration_data[config_oid][\"domains_temp\"]:\n",
315+
" print(\n",
316+
" f\"{extr_count}.) Crawler {config_oid} has extraction rules {temp_extraction_rulesets}\\n\"\n",
317+
" )\n",
318+
" extr_count += 1\n",
319+
"\n",
320+
" inflight_configuration_data[config_oid][\"domains_temp\"][domain_oid][\n",
321+
" \"extraction_rulesets\"\n",
322+
" ] = temp_extraction_rulesets"
321323
]
322324
},
323325
{

0 commit comments

Comments
 (0)