Skip to content

Commit df090f3

Browse files
committed
Fix sgr cloud load with --skip-external
It would ignore the list of repos to limit the load to; fix by filtering the repos in any case.
1 parent 943e60e commit df090f3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

splitgraph/commandline/cloud.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -632,15 +632,15 @@ def load_c(
632632

633633
repo_yaml = load_project(repositories_file)
634634
repositories = repo_yaml.repositories
635+
if limit_repositories:
636+
repositories = [
637+
r for r in repositories if f"{r.namespace}/{r.repository}" in limit_repositories
638+
]
635639

636640
gql_client = GQLAPIClient(remote)
637641

638642
if not skip_external:
639643
rest_client = RESTAPIClient(remote)
640-
if limit_repositories:
641-
repositories = [
642-
r for r in repositories if f"{r.namespace}/{r.repository}" in limit_repositories
643-
]
644644

645645
filter_credential_names = [
646646
r.external.credential for r in repositories if r.external and r.external.credential

0 commit comments

Comments
 (0)