Skip to content

Commit

Permalink
Change to hash rockets to support 1.8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
dLobatog committed Oct 14, 2014
1 parent 9d9f669 commit a1ef1fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/controllers/discovered_hosts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def index
format.html do
@hosts = search.paginate(:page => params[:page])
end
format.json { render :json => hosts }
format.json { render :json => search }
end
end

Expand Down
2 changes: 1 addition & 1 deletion extra/ovirt-node-build/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if ENV['box']
end

Vagrant.configure("2") do |config|
config.vm.define box[:name], primary: box[:default] do |machine|
config.vm.define box[:name], :primary => box[:default] do |machine|
machine.vm.box = box[:name]
machine.vm.hostname = "foreman-#{box[:name]}.bulder.theforeman.org"
machine.vm.provision :shell, :path => 'build_image.sh', :args => [
Expand Down
6 changes: 3 additions & 3 deletions test/unit/host_discovered_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ class HostDiscoveredTest < ActiveSupport::TestCase
setup do
User.current = User.find_by_login "admin"
FactoryGirl.create(:setting,
name: 'discovery_fact',
value: 'macaddress',
category: 'Setting::Discovered')
:name => 'discovery_fact',
:value => 'macaddress',
:category => 'Setting::Discovered')
end

test "should be able to create Host::Discovered objects" do
Expand Down

0 comments on commit a1ef1fc

Please sign in to comment.