Skip to content

Commit 5be397a

Browse files
committed
v1 deploy actually reuses the DTO of build
1 parent ae19041 commit 5be397a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rsconnect/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,15 +482,15 @@ def content_build(
482482
response = self._server.handle_bad_response(response)
483483
return response
484484

485-
def content_deploy(self, app_guid: str, bundle_id: Optional[int] = None, activate: bool = True) -> TaskStatusV0:
485+
def content_deploy(self, app_guid: str, bundle_id: Optional[int] = None, activate: bool = True) -> BuildOutputDTO:
486486
body = {"bundle_id": str(bundle_id)}
487487
if not activate:
488488
# The default behavior is to activate the app after deploying.
489489
# So we only pass the parameter if we want to deactivate it.
490490
# That way we can keep the API backwards compatible.
491491
body["activate"] = False
492492
response = cast(
493-
Union[TaskStatusV1, HTTPResponse],
493+
Union[BuildOutputDTO, HTTPResponse],
494494
self.post("v1/content/%s/deploy" % app_guid, body=body),
495495
)
496496
response = self._server.handle_bad_response(response)

0 commit comments

Comments
 (0)