Skip to content

Commit

Permalink
fix Uses model instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Oct 10, 2023
1 parent a124ae2 commit 45bb2d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/api/src/backend/views/ETLPipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ def post(self, request, group_id, *_, **__):
print("AFTER GROUP CHECK")
# Git repository that contains the pipeline and task definitions for the
# tapis etl pipeline
uses = Uses(
name=LATEST_TAPIS_ETL_PIPELINE_TEMPLATE_NAME,
source=GitRepository(
url=TAPIS_ETL_TEMPLATE_REPO_URL,
branch=TAPIS_ETL_TEMPLATE_REPO_BRANCH
)
)
uses = Uses(**{
"name": LATEST_TAPIS_ETL_PIPELINE_TEMPLATE_NAME,
"source": {
"url": TAPIS_ETL_TEMPLATE_REPO_URL,
"branch": TAPIS_ETL_TEMPLATE_REPO_BRANCH
}
})
print("AFTER USES")
# Validate the request body based on the type of pipeline specified
prepared_request = self.prepare(
Expand Down
1 change: 0 additions & 1 deletion src/api/src/backend/views/http/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,6 @@ class GitRepository(BaseModel):
class ClonedGitRepository(GitRepository):
directory: str


class Uses(BaseModel):
source: GitRepository
name: str = None
Expand Down

0 comments on commit 45bb2d0

Please sign in to comment.