Skip to content

Commit

Permalink
change form to json
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosRoGuerra committed Aug 3, 2021
1 parent 147ae47 commit 8a4b8af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tsuru/client/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,11 @@ func (c *VolumeCreate) Run(ctx *cmd.Context, client *cmd.Client) error {
if err != nil {
return err
}

err = cmd.StreamJSONResponse(ctx.Stdout, response)

if err != nil {
return err
}
fmt.Fprint(ctx.Stdout, "Volume successfully created.\n")
return nil
}
Expand Down

0 comments on commit 8a4b8af

Please sign in to comment.