Skip to content

Commit

Permalink
Merge pull request #70 from agrare/fix_terraform_runner_available
Browse files Browse the repository at this point in the history
Fix `Terraform::Runner.available?`

(cherry picked from commit 5021cc4)
  • Loading branch information
Fryguy committed Aug 30, 2024
1 parent fde903d commit 2c80e39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/terraform/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class << self
def available?
return @available if defined?(@available)

response = terraform_runner_client.get('api/ping')
response = terraform_runner_client.get('ping')
@available = response.status == 200
rescue
@available = false
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/terraform/runner_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
before do
ENV["TERRAFORM_RUNNER_URL"] = "https://1.2.3.4:7000"

stub_request(:get, "https://1.2.3.4:7000/api/ping")
stub_request(:get, "https://1.2.3.4:7000/ping")
.to_return(:status => 200, :body => {'count' => 0}.to_json)
end

Expand Down

0 comments on commit 2c80e39

Please sign in to comment.