diff options
Diffstat (limited to 'lib/api/terraform')
-rw-r--r-- | lib/api/terraform/state.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/api/terraform/state.rb b/lib/api/terraform/state.rb index 4168cce21ef..3dbde4639ca 100644 --- a/lib/api/terraform/state.rb +++ b/lib/api/terraform/state.rb @@ -39,7 +39,6 @@ module API env['api.format'] = :binary # this bypasses json serialization body state.latest_file.read - status :ok end end @@ -53,8 +52,10 @@ module API remote_state_handler.handle_with_lock do |state| state.update_file!(CarrierWaveStringFile.new(data), version: params[:serial]) - status :ok end + + body false + status :ok end desc 'Delete a terraform state of a certain name' @@ -64,8 +65,10 @@ module API remote_state_handler.handle_with_lock do |state| state.destroy! - status :ok end + + body false + status :ok end desc 'Lock a terraform state of a certain name' |