Skip to content

Commit

Permalink
Merge pull request #503 from PrefectHQ/deploy
Browse files Browse the repository at this point in the history
Flow.deploy() return value fix
  • Loading branch information
joshmeek committed Jan 10, 2019
2 parents 522a3bd + 1c2cb0c commit 9b7c9a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

### Fixes

- None
- Fixed `flow.deploy()` returning attribute of a string - [#503](https://github.com/PrefectHQ/prefect/pull/503)

### Breaking Changes

Expand Down
2 changes: 1 addition & 1 deletion src/prefect/core/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ def deploy(self, project_id: str, set_schedule_active: bool = False) -> str:
deployed_flow = client.deploy(
flow=self, project_id=project_id, set_schedule_active=set_schedule_active
)
return deployed_flow.id # type: ignore
return deployed_flow


def _hash(value: str) -> bytes:
Expand Down

0 comments on commit 9b7c9a7

Please sign in to comment.