Skip to content

Commit

Permalink
Create node uses structure_family of data_source
Browse files Browse the repository at this point in the history
  • Loading branch information
padraic-shafer committed Mar 11, 2024
1 parent cf2785e commit ccfeb15
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tiled/catalog/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,12 +597,14 @@ async def create_node(
if data_source.management != Management.external:
if structure_family == StructureFamily.container:
raise NotImplementedError(structure_family)
data_source.mimetype = DEFAULT_CREATION_MIMETYPE[structure_family]
data_source.mimetype = DEFAULT_CREATION_MIMETYPE[
data_source.structure_family
]
data_source.parameters = {}
data_uri = str(self.context.writable_storage) + "".join(
f"/{quote_plus(segment)}" for segment in (self.segments + [key])
)
init_storage = DEFAULT_INIT_STORAGE[structure_family]
init_storage = DEFAULT_INIT_STORAGE[data_source.structure_family]
assets = await ensure_awaitable(
init_storage, data_uri, data_source.structure
)
Expand Down

0 comments on commit ccfeb15

Please sign in to comment.