Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Prevent undefined local variable exception.

/thrillcall/pagerduty-tools/lib/pagerduty.rb:90:in `find_domain': undefined local variable or method `account_form' for #<PagerDuty::Agent:0x8a68f1c> (NameError)
  • Loading branch information...
commit f8977ae1b81c4fa094d17cdd15f61a8676a1d626 1 parent dd4c3a4
thrillcall thrillcall authored committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/pagerduty.rb
2  lib/pagerduty.rb
View
@@ -87,7 +87,7 @@ def find_domain
accounts_search_form = accounts_search_page.form_with(:action => "/accounts/search_results")
accounts_search_form.email = @email
- search_results_page = account_form.submit
+ search_results_page = accounts_search_form.submit
search_results = Nokogiri::HTML(search_results_page.body)
account_list = search_results.css("ul.accounts_list")
domains = account_list.css("a").map { |account| URI.parse(account["href"]).host }
Please sign in to comment.
Something went wrong with that request. Please try again.