-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
copy_result_tb: return the response to the PUT request
copy_result_tb returns the response from the server. The callers are responsible for interpreting it. push.py: construct a reasonable message out of the response and check if the HTTP status is "OK" (i.e < 400). We exit with 0 if so; we really expect only two "OK" cases: 200 is a duplicate PUT request (we print a message on stderr in this case) and 201 is success. If the HTTP status indicates error (>= 400), we output the message on stderr and exit with 1. move.py is not touched by this PR: it will be dealt with in a future PR.
- Loading branch information
Showing
3 changed files
with
81 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters