Skip to content

Commit 5ca678d

Browse files
committed
Revised the if statement to check config_oids too
1 parent a3bd8fe commit 5ca678d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,12 @@
269269
" config_oid = source[\"configuration_oid\"]\n",
270270
" domain_oid = source[\"domain_oid\"]\n",
271271
"\n",
272-
" # ensure the domain oid actually exists in our in-memory data structure\n",
273-
" if domain_oid in inflight_configuration_data[config_oid][\"domains_temp\"]:\n",
272+
" # ensure the config and domain oids actually exist in our in-memory data structure\n",
273+
" if (\n",
274+
" config_oid in inflight_configuration_data\n",
275+
" and domain_oid in inflight_configuration_data[config_oid][\"domains_temp\"]\n",
276+
" ):\n",
277+
"\n",
274278
" all_rules = source[\"rules\"]\n",
275279
" all_url_filters = source[\"url_filters\"]\n",
276280
"\n",

0 commit comments

Comments
 (0)