Skip to content

Commit

Permalink
fix: use repositories_api instead of repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdikhashan committed Dec 6, 2024
1 parent ff99bb6 commit c2a9fe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/spark/run-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_spark_submit_cmd(submit_flags, spark_config, jar_name, jar_args):

@retry(wait=wait_fixed(1), stop=stop_after_attempt(7))
def wait_for_setup(lfs_client):
repositories = lfs_client.repositories.list_repositories()
repositories = lfs_client.repositories_api.list_repositories()
assert len(repositories.results) >= 0

def main():
Expand Down Expand Up @@ -52,7 +52,7 @@ def main():
password=lakefs_secret_key,
host='http://localhost:8000'))
wait_for_setup(lfs_client)
lfs_client.repositories.create_repository(
lfs_client.repositories_api.create_repository(
models.RepositoryCreation(name=args.repository,
storage_namespace=args.storage_namespace,
default_branch='main',))
Expand Down

0 comments on commit c2a9fe0

Please sign in to comment.