Skip to content

Commit

Permalink
benchmark: refactor reana spec loading imports
Browse files Browse the repository at this point in the history
  • Loading branch information
audrium committed Mar 4, 2022
1 parent 5e71e74 commit 1c8460e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions reana/reana_benchmark/submit.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is part of REANA.
# Copyright (C) 2021 CERN.
# Copyright (C) 2021, 2022 CERN.
#
# REANA is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
Expand All @@ -17,7 +17,7 @@
create_workflow,
upload_to_server,
)
from reana_client.utils import load_reana_spec
from reana_client.utils import load_validate_reana_spec

from reana.reana_benchmark.utils import (
logger,
Expand All @@ -31,7 +31,7 @@

@lru_cache(maxsize=None)
def _load_reana_specification(reana_file_path: str) -> Dict:
return load_reana_spec(
return load_validate_reana_spec(
format_filename(reana_file_path),
access_token=REANA_ACCESS_TOKEN,
skip_validation=True,
Expand Down

0 comments on commit 1c8460e

Please sign in to comment.