Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Commit

Permalink
Merge pull request #750 from kaccardi/topic/change-expected-response
Browse files Browse the repository at this point in the history
ciao-cli: expect NoContent from instance delete
  • Loading branch information
Tim Pepper authored Oct 26, 2016
2 parents 4f0aec2 + 16c6016 commit 06ddec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ciao-cli/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func (cmd *instanceDeleteCommand) run(args []string) error {

defer resp.Body.Close()

if resp.StatusCode != http.StatusAccepted {
if resp.StatusCode != http.StatusNoContent {
fatalf("Instance deletion failed: %s", resp.Status)
}

Expand Down

0 comments on commit 06ddec9

Please sign in to comment.