Skip to content

Commit

Permalink
Minor whitespace fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaregge committed Apr 4, 2024
1 parent a51e426 commit 35166df
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vespa/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ def _start_prod_deployment(self, disk_folder: str) -> None:
# TODO Avoid hardcoding projectId and risk
# TODO Consider supporting optional fields
submit_options = {
"projectId": 1,
"projectId": 1,
"risk": 0,
# "repository": "",
# "branch": "",
Expand All @@ -868,7 +868,7 @@ def _start_prod_deployment(self, disk_folder: str) -> None:
}
)

# Compute content hash, etc
# Compute content hash, etc
url = "https://" + self.connection.host + ":" + str(self.connection.port) + deploy_path
digest = hashes.Hash(hashes.SHA256(), default_backend())
digest.update(multipart_data.to_string()) # This moves the buffer position to the end
Expand All @@ -895,7 +895,6 @@ def _start_prod_deployment(self, disk_folder: str) -> None:
message = response.json()["message"]
print(message, file=self.output)


def _start_deployment(self, instance: str, job: str, disk_folder: str,
application_zip_bytes: Optional[BytesIO] = None) -> int:
deploy_path = (
Expand Down

0 comments on commit 35166df

Please sign in to comment.