Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: log wrong vsis3 path non visual qa TDE-563 #343

Merged
merged 1 commit into from
Feb 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions scripts/standardise_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from scripts.cli.cli_helper import format_date, format_source, is_argo, valid_date
from scripts.create_stac import create_item
from scripts.files.fs import write
from scripts.gdal.gdal_helper import get_srs
from scripts.gdal.gdal_helper import get_srs, get_vfs_path
from scripts.standardising import run_standardising


Expand Down Expand Up @@ -55,11 +55,12 @@ def main() -> None:
argo_template = json.loads(env_argo_template)
s3_information = argo_template["archiveLocation"]["s3"]
standardised_path = os.path.join(
"/vsis3", s3_information["bucket"], s3_information["key"], file.get_path_standardised()
)
original_path = os.path.join(
"/vsis3", s3_information["bucket"], s3_information["key"], file.get_path_original()
"/vsis3",
s3_information["bucket"],
s3_information["key"],
*file.get_path_standardised().split("/"),
)
original_path = get_vfs_path(file.get_path_original())
get_log().info(
"non_visual_qa_errors",
originalPath=original_path,
Expand Down