File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
src/databricks/labs/ucx/hive_metastore Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 1
1
import collections
2
2
import logging
3
3
from dataclasses import replace
4
- import fnmatch
5
4
from pathlib import PurePath
6
5
7
6
from databricks .labs .blueprint .tui import Prompts
@@ -208,9 +207,7 @@ def _validate_location(self, location: str) -> bool:
208
207
logger .error (f"Invalid location path: { location } " )
209
208
return False
210
209
for external_location in self ._external_locations :
211
- if location == external_location .url :
212
- return True
213
- if external_location .url is not None and fnmatch .fnmatch (location , external_location .url + '*' ):
210
+ if external_location .url is not None and location .startswith (external_location .url ):
214
211
return True
215
212
logger .warning (f"No matching external location found for: { location } " )
216
213
return False
You can’t perform that action at this time.
0 commit comments