WIP: expoe remote storage path in layermapinfo

This commit is contained in:
Christian Schwarz
2023-11-27 14:54:04 +00:00
parent a76a503b8b
commit ef205f076a
5 changed files with 34 additions and 2 deletions

View File

@@ -58,6 +58,7 @@ class HistoricLayerInfo:
lsn_start: str
lsn_end: Optional[str]
remote: bool
remote_path: Optional[str] = None
@classmethod
def from_json(cls, d: Dict[str, Any]) -> HistoricLayerInfo:
@@ -68,6 +69,7 @@ class HistoricLayerInfo:
lsn_start=d["lsn_start"],
lsn_end=d.get("lsn_end"),
remote=d["remote"],
remote_path=d.get("remote_path"),
)